- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 10:57 AM
Hi,
I need help with the client script that make the mandatory field not mandatory when I click cancel change. Please advice.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 11:06 AM
Hello Eliana,
Try with g_form.checkMandatory = false; to ignore all mandatory fields on the form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 11:03 AM
Hi Eliana,
You can use something as below
function onSubmit() {
//Type appropriate comment here, and begin script below
g_form.setMandatory('field_name',false);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 11:06 AM
Hello Eliana,
Try with g_form.checkMandatory = false; to ignore all mandatory fields on the form