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

Javascript - SyntaxError: illegal character

New Here ,
Jun 03, 2019 Jun 03, 2019

Hi All,

I am trying to create a dynamic stamp, I followed the steps from this youtube

How To Make A Dynamic PDF Stamp - YouTube

The code:

if ((event.source.forReal)&&(event.source.stampName == “#MyTestStamp”))

{

this.getField(“Creditor”).value = identity.name;

this.getField(“Code”).value = app.response(“Code”);

this.getField(“Date”).value = util.printd(“dd/mm/yyyy”, new Date());

}

I cannot get pass the JavaScript Editor, as seen the screen shot below

Any help would be appreciated.

Cheers

2.7K
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

correct answers 1 Correct answer

Community Expert , Jun 03, 2019 Jun 03, 2019

Use " not “

Translate
Community Expert ,
Jun 03, 2019 Jun 03, 2019

Use " not “

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
New Here ,
Jun 03, 2019 Jun 03, 2019

Hi

I am not sure what you meant by use "not"

Cheers

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 ,
Jun 03, 2019 Jun 03, 2019

You must only use straight quotes (like this: " ), not curly ones (like this: “ or ” ).

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
New Here ,
Oct 24, 2019 Oct 24, 2019
LATEST

thank you and sorry for not to reply sooner

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