Hide Delete Button in Fascial period form

VSN
Tera Expert

I have a requirement to Hide the Delete Button On the fiscal_periods form for a few role users.

i have tried with ACL process , but is making all the field read-only for those  role user,

 

3 REPLIES 3

Ranjit Nimbalka
Mega Sage

Hi @VSN 

 

open the UI action of that button and in condition field add condition which you want to add.

below i attached screenshot for your referenceScreenshot 2023-07-28 at 5.37.47 PM.png.

 

 

Regards,

Ranjit

@Ranjit Nimbalka  thanks for reply.

that uiAction is in Global table, 

and i need to hide that delete button for program_manager/project_manager roles

@VSN 

 

Open the delete button (global one) and write the name of your table (eg incident) in the table name column and do an "insert and Stay".

 

This will create a new DELETE button just for your table and the global one will now not show on your table. This is called over riding the ui action.

 

Now any change you do here will be limited to your table only

 

Use the "condition" on the ui action to decide when to show/hide.

add (!gs.hasRole('program_manager')|| gs.hasRole('project_manager')).

 

Regards,

Ranjit Nimbalkar