Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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?
2 REPLIES 2

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

Tanushree Maiti
Kilo 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: