Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Illegal Character in Acrobat Script

Explorer ,
Oct 07, 2019 Oct 07, 2019

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.

2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 07, 2019 Oct 07, 2019

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".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 08, 2019 Oct 08, 2019

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 07, 2019 Oct 07, 2019

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.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 08, 2019 Oct 08, 2019
It is Adobe Acrobat Pro.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 08, 2019 Oct 08, 2019

So far as I know, this.getField points very strongly at Acrobat Pro being the product. I'm guessing, but it's likely.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 08, 2019 Oct 08, 2019
LATEST

Moved thread from Get Started to Acrobat.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines