- This topic has 5 replies, 3 voices, and was last updated 1 week, 6 days ago by .
Hi, I have a need to be able to show or hide certain fields based on user role.
My specific scenario is that I have a Custom Field form which has dates and checkboxes. I want admins to be able to use the date fields to enter dates and a different role to be able to edit the checkboxes.
Admin will access the form via the Dashboard against a CPT. The other roles will access it via a view in the frontend.
So I don't mind how the fields are made to show or not show. It could be via the view (ie show the dates as their values and the checkboxes from the forms) but I can't see a way to do it there. It could be using Conditional Logic but that only seems to be for inclusion based on other form values. The Include/Exclude options have code for user role but this applies to the whole form rather than individual fields (that would be great if we had that level of feature at a field scope).
- You must be logged in to reply to this topic.