Skip to main content
dzungv14059097
Participating Frequently
June 3, 2019
Answered

Javascript - SyntaxError: illegal character

  • June 3, 2019
  • 1 reply
  • 3060 views

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

    This topic has been closed for replies.
    Correct answer Bernd Alheit

    Use " not “

    1 reply

    Bernd Alheit
    Community Expert
    Bernd AlheitCommunity ExpertCorrect answer
    Community Expert
    June 3, 2019

    Use " not “

    dzungv14059097
    Participating Frequently
    June 3, 2019

    Hi

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

    Cheers

    try67
    Community Expert
    Community Expert
    June 3, 2019

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