The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How do I hide/disable a UI Action after one click

AM24
Giga Guru

Hello, I have a ui action button on a related list that generates some tasks. After clicking that button once, I want the button to be hidden/disabled, to prevent users from generating more tasks. I was wondering how to do so. Thank you.

2 REPLIES 2

bhavishapadia
Kilo Sage

As you are creating the task on click of button that must be having any specific requirements to identify the task created from script. In the UI action condition call the script include and verify if the any task is created using the script and deactivate it. 

I don't know if I'm understanding properly. So I would have to add script in the script include to check if the records have been created, and then call that function I guess from the UI action condition?