- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-05-2022 06:57 AM
I have several mandatory fields on change request, and I need to allow save as draft without all of them filled
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-07-2022 02:16 AM
@Gary Larsen Create a new UI Policy
Set the filter as State = Drfat
Write in "Execute if true" script : g_form.checkMandatory = false;
Write in "Execute if false" script : g_form.checkMandatory = true;
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-05-2022 07:03 AM
You can create a "save draft" UI action to allow them to save without entering the mandatory fields. We'll need to code it to ignore the mandatory fields.
But a better approach is to just configure your form so that the fields do not become mandatory until you move the change to the next state (such as assess)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-05-2022 08:16 AM
Hi @Gary Larsen,
I would create an on before Business Rule in that specific case. For example:
When to run:
Actions:
If this answer helps you please mark it as Helpful/Solution.
Thanks & Regards - Manuel
If my answer helped you, please mark it as Helpful/Solution.
Thanks & many Regards - Manuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-05-2022 08:24 AM
not following how that would help me save the change as draft without having all of the mandatory fields filled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-07-2022 01:30 AM
Hi @Gary Larsen,
I was following up with the idea to disable the mandatory fields first. The Business rule would ensure on a certain state change that the fields must be filled. With this you could save it like a draft but also ensure that the field will be filled at a certain stage in your process.
If this answer helps you please mark it as Helpful/Solution.
Thanks & Regards - Manuel
If my answer helped you, please mark it as Helpful/Solution.
Thanks & many Regards - Manuel