Hi @Shrutii ,
visibleIf : hides the fields from the metadata, hence they cannot be accessed within a schema view, or column selection, or an expression builder. But this does not hide any data, if the field name is manually entered in an expression the value will show up.
Example,
<attribute name="firstName" visibleIf="hasNamedRight('admin')"/>
In the above definition of visibleif, the non-admins cannot see firstName in Configure list. But if the operator enters @firstName, then the operator can see the firstName data.
accessibleIf : hides the data (replacing it with empty values) from resulting query. If visibleIf is empty, then it gets the same expression as accessibleIf .
Example,
<attribute name="firstName" accessibleIf="hasNamedRight('admin')"/>
In the above definition of accessibleIf, the non-admins cannot see email in Configure list and also if the operator enters @firstName, then the operator CANNOT see the firstName data, It will be empty.