Help needed when value in referance field changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 06:57 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 07:37 PM - edited 09-11-2023 07:38 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 08:41 PM - edited 09-11-2023 08:41 PM
@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.
ServiceNow Community Rising Star, Class of 2023