List View ACL

Hide a specific column in a ChronoForms list view based on user permissions.

Overview

The column header and empty cells remain visible for unauthorized users, even though the interactive buttons inside are properly hidden by form permissions.
Apply a conditional CSS class to the column. Use a switch that returns "hidden" for unauthorized users and reference this switch variable in the Column Classes field for that specific table column.

Answered
Connectivity v6
it itpates 20 Sep, 2018
In Chronoconnectivity v6, I have a list_tickets TABLE in VIEWS that has a column that I only want the website managers to see. It is an Edit column, which contains buttons that allows managers to edit a service ticket. The actual form for that Edit function does have permissions set, so normal employees do not see the Edit buttons themselves, but the empty column remains, with Edit in the header. It's not critical - the form itself functions as expected. But aesthetically, I would like to find a way to make the edit:Edit column disappear altogether for normal employees and only display for the managers. Thoughts?
he healyhatman 20 Sep, 2018
Answer
1) Use a separate table
2) Use a switch that returns "hidden" if the user is the wrong type, and put column_name:{var:hidden_switch} in the "Column Classes" field for your table.
This topic is locked and no more replies can be posted.