Ankur Bawiskar
Tera Patron

@Vaishnav1698 

Unless you keep a track of whether button is clicked or not how will system know if UI action needs to be shown/hidden.

You can use a hidden form field and then use that in condition.

if max length is reached for UI action condition field then call script include function and move your condition to script include function and return true/false

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader