We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Catalog item scripts

Bob44t
Tera Contributor

What does this message mean? onSubmit script error: ReferenceError: action_sypmtom is not defined:
function () { [native code] }

3 ACCEPTED SOLUTIONS

Peter Bodelier
Giga Sage

Hi @Bob44t,

 

It looks like you're trying to call a function which doesn't exist. If you share your code, we can help debug.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

VishalB06557037
Giga Sage

Hi @Bob44t 

 

Can you check  in your code if "action_sypmtom" is declared or not.

It should be declared like this e.g., var action_sypmtom = "your_value";

 

OR as suggested by @Peter Bodelier  you can share your code...!!

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

piyushsain
Tera Guru

You need to define action_sypmtom before using it in the Script

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

View solution in original post

3 REPLIES 3

Peter Bodelier
Giga Sage

Hi @Bob44t,

 

It looks like you're trying to call a function which doesn't exist. If you share your code, we can help debug.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

VishalB06557037
Giga Sage

Hi @Bob44t 

 

Can you check  in your code if "action_sypmtom" is declared or not.

It should be declared like this e.g., var action_sypmtom = "your_value";

 

OR as suggested by @Peter Bodelier  you can share your code...!!

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

piyushsain
Tera Guru

You need to define action_sypmtom before using it in the Script

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain