Problem hiding some column in form view

Im trying to hide a certain column in the form view for USERROLE=โ€œAdminโ€ and show that column if USERROLE=โ€œUserโ€. And the table view will display all the information from all those column.

Solved Solved
0 7 444
  • UX
1 ACCEPTED SOLUTION

You can check the status when adding a new record with a formulaโ€ฆ IN([KeyColumn],TableName[KeyColumn])

View solution in original post

7 REPLIES 7

Both Admin and User should see that column in the table view?

yes sir

Try something likeโ€ฆ
OR(
NOT(CONTEXT(โ€œViewTypeโ€)=โ€œFormโ€),
AND(CONTEXT(โ€œViewTypeโ€)=โ€œFormโ€,USERROLE()=โ€œUserโ€)
)

Thanks, it works like charm, but the problem now is that the admin can no longer edit the hidden part.

is there a way to just hide it only when adding n new report and make it editable during update?

Because the idea is for admin to prefill the form during adding a new report (admin should not see the userโ€™s part) and the user will continue update the report during/after site visit (Users can see adminโ€™s part but cannot edit).

I know that i can just create two separate section (Tabs) for the form but for some reason, i need to keep it simple.

You can check the status when adding a new record with a formulaโ€ฆ IN([KeyColumn],TableName[KeyColumn])

Got it. Thank you again

Youโ€™re welcome

Top Labels in this Space