- 11 Aug 2023
- 4 Minutes To Read
Visibility and Display Rule Conditions
- Updated On 11 Aug 2023
- 4 Minutes To Read
List of Visibility and Display Rule conditions
|URL Properties||URL Properties enable you to uniquely identify a web page to show Whatfix content and widgets. These properties can be added as a Visibility or Display Rule condition to your Whatfix content and widgets, as required. For more information, see URL Properties.|
The following are the URL Properties that you can use:
URL: If you want to use the entire URL as a Visibility Rule, you can use the URL condition rule.
URL Hostname: If you want to uniquely identify a page using the domain name, you can use the condition where the URL Hostname is the first part of any URL.URL Path: If you want to identify your web page using the pathname on the URL, you can use this condition. The website pathname is the part that you see after your domain name but before the parameters or hashes.
URL Parameter: If you want to identify your web page using the parameters on the URL, you can use this condition.
URL Hash: If you want to identify a page using the hash value of your URL, you can use this condition. Hashes are usually present in Single page applications made using AngularJS or ReactJS. There are no page refreshes but only Hash changes.
|Other Elements on Page||If you want to identify a page based on the presence of a particular element (other than the one selected by you) on your web page, you can use this condition.|
The values passed to this condition are CSS selectors like #ID, class, or JQuery.For more information, see Other Element on a Page condition rule.
Attribute condition rules enable you to fetch specific information based on roles, departments, geography, accounts, etc. and segment content to show to particular users. Once the attributes are integrated with Whatfix, you can see them in the visibility rules of widgets for content segmentation. For more information, see Attributes condition rules.
The following are the Attribute Conditions that you can use:
User Attribute: If you need to segment content based on end-user information from your application, User Attributes enable you to fetch this data for use within Whatfix.
Enterprise Attribute: If you need to fetch your application information for content segmentation, Enterprise Attributes can enable you tofetch this data for use within Whatfix.
The Selected Element rules enable you to add identifiers or properties for unique elements on your web page as a Display Rule. For more information, see Selected Element condition rules.
The following are the Selected Element that you can use:
Selected Element Is- CSS Selector/ JQuery: If you want to uniquely identify an element using its distinct ID, you can use this condition. For example, specifying the specific element ID enables you to identify and select the accurate element from a list of similar elements.
Selected Element Text: If you want to uniquely identify an element using the displayed text on the element, you can use this condition.
If a User Action is created on an element, it acts as a trigger to display content based on the action your end-users perform. For more information, see User Action condition rule.
If you want to limit content access to only those who trigger it from a Launcher, using Launcher as a Visibility Rule enables you to do so. For more information, see Launcher as a Visibility rule condition.
If you want to organize information into categories and identify specific pages or roles on your application to display relevant content or widget, you can use a Tag, which is a word, title, or group that enables categorization. For more information, see Tags condition rules.
|Action Element||If you want to ensure that performing an action on a particular element triggers the branched Flow, you can use the Action Element Is or Action Element Text as a display rule. This enables you to add identifiers or properties to ensure that the branched Flow starts on the correct element. For more information, see Action Element conditions as Display rules.|
Operators in Whatfix refer to the logical expressions that are used to determine whether a Visibility or Display rule condition is met according to a set value. These operators can be used to compare two values, such as "equals", "greater than", "less than", or "not equals", and thus decide whether to show or hide a particular content element based on the condition.
For example, if the Visibility rule is set to "show content only if the user has the 'editor' role", the operator used would be "equals" to compare the user's role with the set value of 'editor'. If the user's role matches the set value, the content will be displayed; otherwise, it will be hidden. For more information, see Supported Operators for Visibility and Display Rules.