Hide/show UI Action that have Client checkbox check

PhatDinhT
Tera Contributor

Hi everyone,


I'm trying to hide or show a UI Action based on the value of the current record, but since it has the Client checkbox checked, I tried calling a Script Include from the condition, but it doesn’t run. I found some methods using DOM manipulation, but I want to avoid that. Is there any other way to work around this?


Thanks

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@PhatDinhT 

UI action conditions are evaluated only once when form loads.

if you want to show/hide UI action based on field change then you need to use DOM manipulation for this.

Note: DOM manipulation is not recommended

How to hide/show an UI action on field changes 

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@PhatDinhT 

UI action conditions are evaluated only once when form loads.

if you want to show/hide UI action based on field change then you need to use DOM manipulation for this.

Note: DOM manipulation is not recommended

How to hide/show an UI action on field changes 

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader