how to make the ui action be inactive except to admin?

chenyanwei
Giga Contributor

I create a ui action and the action name is delete_checked to hide the 'Delete' ui action of table[sys_ui_action] in my table .but how to make my ui action inactive  to admin, active to other roles? 

10 REPLIES 10

Goutham sai
Tera Expert

Hello Chenyanwei,

 

To make a ui action inactive to admin, active to other roles you can add the following in the condition and also you need to click/select the Form button field in UI action

gs.hasRole('admin') == 'false'

 

Please like if this was helpful.

Thanks,

Satish