Copy link to clipboard
Copied
Hello,
I'm very new to javascript and I'm working with a form to hide fields according to which layers are selected.
There are 5 layers in this form each with about 30 fields per layer. I'm using the framework of a script that works in another form. I received help from a coworker to create the other form.
In this form I am basically just updating the field names. When I input a sample section of the script into the new form the error "SyntaxError: illegal character 84: at line 85" showed up. The line reads
this.getField(“JKP1”).display=display.hidden;
I've re-typed it but it still doesn't work. What is character 84? Any help will be greatly appreciated.
Copy link to clipboard
Copied
Are you typing this up in Word first, then copy/pasting? If so, DON'T! It messes up the quotes. Look closely at the quotes around “JKP1”. They are different to each other! Worse, neither one is the one you need as in "JKP1".
Copy link to clipboard
Copied
I copied it to Word at first but then transferred it to Notepad. I don't see any other quotes to use on my keyboard...
Copy link to clipboard
Copied
Which Adobe product are you using?
HTML form scripting should be performed in a dedicated code editor like Dreamweaver or Brackets, not a word processor like Word.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
So far as I know, this.getField points very strongly at Acrobat Pro being the product. I'm guessing, but it's likely.
Copy link to clipboard
Copied
Moved thread from Get Started to Acrobat.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more