- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 12:50 AM
Hi All,
I have a field on the incident record that I want to make mandatory on form submitting.
I created a client script (onSubmit):
function onSubmit(){
g_form.setMandatory('field_name', true);
}
when I'm submitting it's turning to mandatory but after a few seconds the red asterisk disappears.
Does anyone know how to fix this?
Thanks 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 12:52 AM
Try below:
function onSubmit(){
g_form.setMandatory('field_name', true);
return false;
}
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 12:52 AM
Try below:
function onSubmit(){
g_form.setMandatory('field_name', true);
return false;
}
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 12:59 AM
It works, Thanks!