How can i hide list context menu based on condition not satisfied

indira_parimi
Tera Contributor

Hi,

I have created a custom UI Action -List context menu for a custom table. In this UI Action, I've provided a condition to  the UI Action.

But when condition is not satisfied the List context menu, I can view list context menu action and when clicked I get the message "Security does not allow the execution of that action against the specified record".

 Instead of displaying a message, I would like to hide the UI Action when the condition is not satisfied? How can I achieve it.

Thank you.

 

5 REPLIES 5

Hi Felipe,

 

Images are broken. Could you please send me ? I did not understand what the parameter "task_ci" means in that context. Since "current" object is not available, what is the parameter to send to the script include ?

 

Regards

 

Fabrício