- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 05:23 PM
Hello All,
I am working on a catalog item that I need assistance with the a client script. The form has four fields where the values are Yes/No. I need to validate that are values are Yes before the form can be submitted. I think the best method is a client script but need some help with the script.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 06:44 PM - edited 08-07-2023 06:46 PM
Hello you can have a onSubmit client script and check all 4 variables like below
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 09:27 PM
g_form.getValue('<name_of_the_field'>);
if(g_form.getValue('<name_of_the_field>' == "yes"));
{
return true;
}
else
{
return false;
}
Try to get values from all variables you want and modified code as per your requirement

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 06:44 PM - edited 08-07-2023 06:46 PM
Hello you can have a onSubmit client script and check all 4 variables like below
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 09:27 PM
g_form.getValue('<name_of_the_field'>);
if(g_form.getValue('<name_of_the_field>' == "yes"));
{
return true;
}
else
{
return false;
}
Try to get values from all variables you want and modified code as per your requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 10:51 AM
This worked perfectly! Thanks!!!