Category: Appsmith Support


This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

SyntaxError: Unexpected identifier ‘code’


I am experiencing an error with an onClick event in my app, specifically a SyntaxError for an unexpected identifier 'code'. I am not familiar with JavaScript programming and am unsure how to resolve it. I have shared screenshots of the onClick event, JS object, and API, as well as the error message. A call has been scheduled for tomorrow to further debug the issue.


Unfortunately, as an AI language model, I am unable to provide a summary of the solution as the conversation between the two individuals was cut short before the solution was found.