we will assign tasks to drivers, but I want to prevent a driver from updating any previous items in the above items inline form. a driver can only add new items but not editing old entries.
Now If I hide system generated edit for user only, then admin will be able to edit the columns but user will not. Even If user is allowed to add new columns and once they save they will not be able to edit. Only admin can edit. This is not the solution I want.
Maxrow also not a good solution as only it shows last row.
So.. as per your responses, the user should be able to edit his/her own items. But you also said.. “a driver can only add new items but not editing old entries.”. I assume with this you mean other driver’s items. If the Admin should be able to edit everyones Items, then you would need to add that condition to Edit action. Don’t know your table structure, but lets assume you have “Users” table with roles. Then the formula would be..
OR(
USEREMAIL()=[EmailColumn],
LOOKUP(USEREMAIL(),users,ID,Role)=“Admin”
)
If you don’t have an “Users” table, then you could write it like..
IN(USEREMAIL(),LIST([EmailColumn])+LIST(“adminA@domain.com”,"adminB@domain.com"))
When the app user is the admin, the IN() formula gives the result as TRUE for all rows as it’s not checking any rows to verify it. Meaning.. the result is like TRUE, TRUE etc. for all rows.