g_form.checkMandatory = false; is not working accross multiple tabs of a change record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 08:03 AM
Hi everyone,
I am trying to bypass mandatory fields on a change record when the "Cancel Change Request" UI action is kicked off.
Currently, when someone clicks on Cancel Change Request (our UI action) it forces the user to complete all mandatory fields on the form before allowing them to cancel the change request.
Our change records have multiple tabs - a Planning tab with details of change, and Schedule tab with start and end dates of change window. Both tabs contain mandatory fields.
Here is my issue. The below script command works great on the main Planning tab and removes mandatory requirements for all the fields on that tab, but it doesn't apply to the Schedule tab. I still have to populate the Start and End date fields on the Schedule tab before it will allow me to cancel the change
Thanks in advance for any guidance on how to handle
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 09:09 AM
Hi @David Trotta,
There is OOTB Cancel Change UI Action on change_request table, are you setting scipt code for this UI action or some thing new.
Refer the below thread
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 09:47 AM
We use a custom Cancel Change Request UI action, not the OOO version. Based on the article you provided, it appears we are using the correct script command (g_form.checkMandatory = false;), but it doesn't seem to apply to mandatory fields on a different tab within the CR. Do I need to call out the specific tab in my script (not even sure that is possible)?