Help needed when value in referance field changes

Snehal13
Kilo Sage

I have a form on incident table that has a field named 'Region' (referance field with options as US, EU, APAC). There is a UI action button 'Resolve' that shows on this form.

 

(1) If the user selects US & EU, The resolve UI action should be shown

(2) If the user selects APAC, the resolve UI action button should not be shown.

 

How to achieve part (2) from client script.

6 REPLIES 6

Snehal13
Kilo Sage

Not want to do DOM Manipulation to hide UI action based on value change in a referance field. Any other recommended way ? The UI action condition runs on server side and my requirement is to hide UI action when referance field value changes.

jaheerhattiwale
Mega Sage
Mega Sage

@Snehal13 Showing or hiding the UI action from the client script is not possible without DOM manipulation. And DOM Manipulation is not best practice.

 

So you can add the condition to the UI action itself.

 

Then when you select the region as APAC and save the form , the Resolve UI Action gets hidden.

 

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023