The <HiddenByDefault> tag is used to configure label elements and TextBox, DateBox, or NumberTextBox field elements so that sensitive values are hidden by default and can be revealed by clicking a View link on a custom form. The field value is visible until the user clicks a Hide link to obscure the value again.
The tag defaults to False and shows the value if you don't specify True or False within the tag.
Note: An <Authorizationkey> tag takes precedence over a <HiddenByDefault> tag in determining visibility. If the user’s role doesn't have access to the field, the field is hidden entirely and no View link is shown.
Possible values:
- True
- False
Sample usage:
Copy
<!-- SSN/SIN -->
<Label>
<Style>IVLabel</Style>
<Caption>lblSocialSecurityNumber</Caption>
<Row>18</Row>
<Column>2</Column>
<AuthorizationKey>SSN</AuthorizationKey>
<ForFieldId>SocialSecurityNumber</ForFieldId>
<HiddenByDefault>true</HiddenByDefault>
</Label>
<Field>
<Style>IVTextBox</Style>
<Row>19</Row>
<Column>2</Column>
<IsRequired>false</IsRequired>
<BindingProperty>SocialSecurityNumber</BindingProperty>
<AuthorizationKey>SSN</AuthorizationKey>
<FieldId>SocialSecurityNumber</FieldId>
<HiddenByDefault>true</HiddenByDefault>
</Field>