Make field mandatory based on true/false field update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 01:54 AM
Hi all,
I was trying to make a field mandatory, when a true/false field is updated on a sys_user form. I tried UI policy but it dint work the way I wanted.
This is the scenario, when someone enables/disables coreHR, Change log should be made mandatory. Can anyone help me achieve this?
Thanks
Rini

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:02 AM
Hi Rini,
Please create onchange client script for sys_user table and you can write logic like below
if(newValue){
g_form.setMandatory('fieldName',true);
}
else
{
g_form.setMandatory('fieldName',true);
}
I hope this is helpful for you.
Thanks,
Ramesh Kandhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:40 AM
Thanks for ur reply. Unfortunately this is how I implemented in the first place, but its doesnt work. Whenever there is an update made to the field 'Enable CorehR' (True or False), change log field should be made mandatory. (Users should comment why the field is enabled or disabled).
Rini