Accesible if and Visible if difference on 1SAME attribute in schema | Community
Skip to main content
Level 4
February 24, 2024
Solved

Accesible if and Visible if difference on 1SAME attribute in schema

  • February 24, 2024
  • 1 reply
  • 561 views

<attribute name="firstName" accessibleIf="$(login)=='admin'"/>
<attribute name="firstName" visibleIf="$(login)=='admin'"/>

 

hi all, what is the diference between accesible if and visible if difference on attribute in schema

 

1.what will happen practically in terms of data view in adobe ui if we use below code

<attribute name="firstName" accessibleIf="$(login)=='admin'"/>

 

2.what will happen practically in terms of data view in adobe ui if we use below code

<attribute name="firstName" visibleIf="$(login)=='admin'"/>

 

@AndreaBriceno

please help to explain

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

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.

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
February 26, 2024

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.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups