A tab on a Web Interface page can be either visible or hidden. If a tab is visible, the Web Interface user can click the tab to access the user interface elements (entries) located on that tab. If a tab is hidden, it is inaccessible to the Web Interface user.
Normally, if a Web Interface user has sufficient rights to view the page that holds a given tab, the tab is visible to that user. However, certain scenarios may require a particular tab to be hidden or displayed on a page depending on the properties of the object selected by the user to access that page. For example, you may need to hide the Membership Approval tab on the group’s General Properties page when the user selects a group whose properties meet certain conditions. Another requirement could be to hide or display a tab depending on whether the user is authorized to make certain changes to the selected object. For example, it may be required that the Membership Approval tab be hidden if the user does not have sufficient rights to change the members list of the group.
To address these requirements, the Web Interface provides a number of options that control the visibility of a tab to the user. The visibility options on a tab take the form of conditions that are evaluated when a particular user selects a particular object in the Web Interface to access a page containing that tab. The tab is displayed if each of the conditions evaluates to True.
By setting up the appropriate conditions on a tab, the administrator can control the visibility of the tab in the following ways:
- Show the tab if the properties of the selected object meet certain requirements (for example, the description of the object is set to the text string specified); otherwise, hide the tab. The conditions that control the tab visibility in this way are referred to as property-related conditions.
- Show the tab if the user is authorized to modify certain properties of the selected object (for example, the user is authorized to change the description of the object); otherwise, hide the tab. The conditions that control the tab visibility in this way are referred to as access-related conditions.
It is possible to set up only property-related conditions, only access-related conditions, or both. The tab is displayed if all the specified conditions evaluate to True. If at least one of the specified conditions is not met, the tab is hidden.
- In the Form Editor, click the Edit icon next to the name of the tab you want to configure.
- Click Visibility on the page for managing the properties of the tab.
- Select the option to set up visibility conditions.
- To set up property-related conditions, click Configure.
- Do the following:
- To add a condition, select a property, type in a value, and click Add Requirement.
- To remove a condition, select it from the list and click Remove.
- When finished, click OK.
When you select a property and supply a value, either a new condition is added to the list or the supplied value is added to the existing condition that is based on the selected property. The latter occurs if the property is already in the list of the property-related conditions. This allows you to configure a condition that evaluates to True if the property has any one of the values specified. If only one value is supplied for a particular condition, then the condition evaluates to True if the property has exactly the value specified.
- To set up access-related conditions, do the following:
- If you want to add a condition, click Add, select a certain property, and click OK.
- If you want to remove a condition, select it from the list and click Remove.
When you select a property and click OK, a new condition is added that evaluates to True if the user has sufficient rights in Active Roles to make changes to that property of the object selected by the user in the Web Interface.