Mandatory 'Business impact' field when Proposing Major Incident

Basim Zaidi
Mega Expert

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?

find_real_file.pngAny help would be much appreciated 🙂

Bas

6 REPLIES 6

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

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.

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;
}

Regards
Harish