Make Business Impact mandatory when propose to Major Incident

IB98
Giga Sage

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". 

Screenshot 2025-08-29 at 5.08.11 PM.png

4 REPLIES 4

Rafael Batistot
Kilo Patron

Hi @IB98 

This article might help you 

Custom UI Page in a popup - ServiceNow Community

Its_Azar
Tera Guru

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.

 

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India

Bhuvan
Kilo Patron

@IB98 

 

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.

Bhuvan_0-1756517938991.png

 

If this helped to answer your query, please mark it as helpful & accept the solution. 

 

Thanks,

Bhuvan

kaushal_snow
Mega Sage

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.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/