GrayOut\disable Declarative action

aphaugat
Tera Expert
I have a declarative action that triggers an API, and I want to prevent duplicate clicks. Is there a way to disable or grey out the declarative action button?
3 REPLIES 3

Ankur Bawiskar
Tera Patron

@aphaugat 

no that's not possible

you will require some hidden field and set that flag whenever it's clicked

Then update the declarative action condition to check this flag

💡 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

@aphaugat 

Hope you are doing good.

Did my reply answer your question?

💡 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

Tanushree Maiti
Mega Patron

Hi @aphaugat .

 

Its not feasible.

Refer the post on similar requirement : https://www.servicenow.com/community/developer-forum/grayout-disable-declarative-action/m-p/3147185/...

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: