Skip to main content
Participant
June 4, 2021
Answered

Unable to paste javascript in JavaScript Editor

  • June 4, 2021
  • 2 replies
  • 1715 views

I have a library of javascript saved on Word.docx that I refer to when I make forms.  Work recently changed to Office 365 and I don't know if this is related, but now I am no longer able to copy the javascript from Word and paste it into the JavaScript Editor.  Does anyone have a fix for this?

I use Windows 10 Pro,  Office 365, and Adobe Acrobat DC Pro

 

This topic has been closed for replies.
Correct answer try67

Word should never be used as a code editor. You should use a plain-text editor. I recommend Notepad++, but even just the built-in Notepad is fine.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 5, 2021

Word should never be used as a code editor. You should use a plain-text editor. I recommend Notepad++, but even just the built-in Notepad is fine.

Legend
June 5, 2021

Hello,

 

It works for me copying Word.docx using Office 365 and Adobe Acrobat DC Pro on Mac OSX. What you could try is saving your Word.docx as Plain Text (txt) then try copying into the JavaScript Editor. I recommend downloading Visual Studio Code as a external JavaScript Editor that you use to save and store your .js file through the app.......there's free versions avaiable online.

 

Edit: additionally make sure that you're naming your script and clicking the add button in the JavaScript Editor to get the correct window to paste your code into. 

 

Regards,

Milke