Make Business Impact mandatory when propose to Major Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
how can I make the Business Impact field mandatory on the UI Page that pops up when an incident is "Propose to Major Incident".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @IB98
This article might help you
Custom UI Page in a popup - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi there @IB98
Try UI Page Client Script since that popup is a custom UI Page, not a normal form. The Business impact field in that modal is just an input element, so you’ll need to add a check before submission. Example approach:
Edit the UI Page → add a client script (in the Script section).
Before the onclick or action to submit, validate that g_form.getValue('business_impact') (or the field’s actual name) is not empty.
If it is empty, use g_form.showFieldMsg('business_impact', 'Business Impact is mandatory', 'error') and stop submission.
If the field isn’t a GlideForm field (since this is a UI Page), you may need to use plain JavaScript like:
function onSubmit() {
var bi = gel('business_impact').value;
if (!bi || bi.trim() == '') {
alert("Business Impact is mandatory");
return false;
}
return true;
}
Hope this helps.
Kind Regards,
Mohamed Azarudeen Z
Developer @ KPMG
Microsoft MVP (AI Services), India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Go to UI action table 'sys_ui_action' and open 'Propose Major Incident'
You can see validation section that makes work notes mandatory for classic UI and workspace and if missing error message is displayed. Extend this logic and add conditions to make Business Impact mandatory and save the record.
If this helped to answer your query, please mark it as helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @IB98 ,
This popup is rendered via a dedicated UI Page named mim_propose (or in some setups, mim_workbench_promote). The only way to make Business Impact mandatory is to modify this UI Page directly similar to how Work Notes is already enforced.
On the affected UI Page, wrap the Business Impact field with markup and attributes that make it required. Mirror the existing mandatory setup for Work Notes by updating the HTML and associated client side logic.
Update the HTML:
Add the required="true" attribute.
Place <span mandatory="true" ...> on Business Impact.
Then in the client script, replicate the workNotesOnChange() logic for Business Impact, ensuring the Propose button only activates when both fields are filled. Include logic to enable the submit button only when both Work Notes and Business Impact are not empty.
____________________________________________________________________________________________________
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/