- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2021 05:56 AM
Hi all!
I'm kinda new at the community here. I hope you can help me out.
I'm trying to prevent submission of a record producer if the user has not checked the right answer.
By searching in the community I found out this can be done by a "onSubmit Catalog Item Script"
I tried the following;
if(g_form.getValue('fiber_tsg') == 'No') { //fiber_tsg is my record producer
alert('Please follow the configuration guide before proceeding.');
return false;
}
I'm getting the following error:
Can anyone help me out?
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Customer Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2021 11:03 AM
Your script is missing the function:
function onSubmit() {
//Type appropriate comment here, and begin script below
}
Try adding that and then your code between the {}.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2021 11:03 AM
Your script is missing the function:
function onSubmit() {
//Type appropriate comment here, and begin script below
}
Try adding that and then your code between the {}.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2021 12:59 AM
Thats it!
Thanks!