Guidance Needed: Restricting Edit/Delete Buttons Based on Approval Status in App

Hi everyone

I have an approval application with various statuses: Draft, In Progress, Approved, Under Review, and Closed. I need guidance on how to restrict the Edit and Delete buttons when the approval status is In Progress, Approved, Under Review, or Closed.

You can just simply edit the behaviour of the action based on the status of which it should be appeared

1 Like

For Edit/Delete maybe using Switch?

SWITCH(

[Status_HO],

“In Progress”, FALSE,

“Approved”, FALSE,

“Under Review”, FALSE,

“Close”, FALSE,

TRUE

)

2 Likes

Another alternative:

NOT(IN([Status_HO], {"In Progress", "Approved", "Under Review", "Close"}))
2 Likes

Thanks this way is very easy to control show/hide button in each status.

1 Like

Thanks this way is very direct.

1 Like

Thanks, I was previously stuck at Table Settings >> Are updates allowed.
You give me with new directions. :grinning_face:

1 Like

Yeah glad that I can help
Table settings are for permission in general across the app like which user or a subset of user can add, update or delete.
If you want to tinker a little bit deeper then just edit the behaviour of that action directly

Another way that you can control which action to appear is that you can bind the action to slices

Otherwise 2 options that Steve and jambyc suggested is good enough

1 Like