Script returning a strange error

Viewing 1 reply thread
  • Author
    Posts
  • April 5, 2026 at 5:40 PM #53911

    Phil Norton
    Participant

    I have a complete script to look up a reference form and return a result but if I input a value that I know is there – Brat. it gives me the error
    Intergeneric Reference: SyntaxError: Unexpected identifier ‘found’. Expected ‘)’ to end an argument list., line:1

    If If just input Brat without the “.” It gives me this:
    Intergeneric Reference: ReferenceError: Can’t find variable: Brat, line:(null)

    This is a test script that gives the same result:

    function lookupIntergeneric() {
    var refForm = document.getFormNamed(‘Intergeneric Reference’);
    return refForm ? ‘Form found’ : ‘Form not found’;
    }
    lookupIntergeneric();

    April 6, 2026 at 12:23 AM #53916

    Brendan
    Keymaster

    It works for me.

    Are you using curly quotes there or straight quotes in your JavaScript? They need to be straight quotes.

Viewing 1 reply thread

You must be logged in to reply to this topic.