Mandatory 'Business impact' field when Proposing Major Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 05:37 AM
Hi community,
I want the 'Business impact' field to be mandatory when I click the 'Propose Major Incident' UI action from the context menu. I would have thought this would be done by a simple UI policy, however because there are no condition changes for this record (that I am aware of), on click of the 'Proposed Major Incident' UI action I'm not sure how this can be achieved?
Any help would be much appreciated 🙂
Bas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 06:23 AM
Hi SaiRaviKiran,
Thanks for your response.
In the OOTB UI Action 'Propose Major Incident' I cant see anything that is setting the 'Work notes' mandatory so this must be set/controlled elsewhere. I'd rather not "tinker" with OOTB config. Just need to find out where Work notes is being set to mandatory upon proposal and replicate that for the Business impact field.
Any ideas?
Thanks,
Bas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 10:34 PM
If you want to configure in that way, you need to create On Submit client script or add condition in existing one.
In your Propose Major Incident UI Action,there is one action name. Search with that action name in OnSubmit client script. ( Scripts contains action name in your ui action)
Add Business impact mandatory condition in that client script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 10:38 PM
Hi you can do this in UI action itself by placing the condiiton
or
A on submit client script
Script
var action = g_form.getActionName();
alert(action); //check the value of action
if(action == 'close_complete') // Action value
{
g_form.setMandatory('fieldname', true);
return false;
}
Harish