Visibility Rules and Display Conditions

 

Prerequisite: The Rule Engine is exclusively accessible for the New Content Creation Experience.

Exploring Visibility Rules and Display Conditions

Visibility rules and display conditions serve as essential components in content development and application engagement, allowing content creators to finely tune when and where specific elements are presented to users. In this comprehensive guide, we'll delve into the intricacies of visibility rules, exploring their significance, implementation, and application, along with detailed examples.

Understanding Visibility Rules

Visibility rules enable content creators to control the appearance of elements within an application based on various parameters such as user identity, screen context, timing, user actions, and more. By defining conditions that must be met for an element to be displayed, content creators can deliver tailored experiences that cater to the specific needs and behaviours of users.

Importance of Display Conditions

Display conditions play a pivotal role in optimizing user experiences and driving engagement within applications. Here's why they're essential:

  1. Relevance: Displaying content based on user attributes or actions ensures that users encounter information that is pertinent to their current context or objectives.

  2. Engagement: By presenting content at the right moment, content creators can prompt user interaction and drive engagement with key features or announcements.

  3. Onboarding: Tailoring tutorials or guidance based on user progress or actions simplifies the onboarding process and enhances user comprehension.

Implementation of Visibility Rules

Visibility rules are typically implemented using a rule engine framework integrated within the Studio. This framework allows content creators to define conditions and specify when particular elements should be displayed. Let's examine the common parameters and conditions involved:

Condition Type

Description

Operators

Screen Presence

Conditions based on element visibility, content, or type

Is visible/Not visible, Exists/Not exist, Text is, Text is Not, Text is Like, Text is Not Like, Text is Empty, Text is Not Empty, Regex

Timing

Conditions based on specific dates, times, or user inactivity

Greater than, Less than, Between

User/App Properties

Conditions based on user attributes, platform, browser, segments, or user/app data

Equals, Not equals, Contains, Not contain, Starts with, Ends with, Greater than, Less than, Regex, Is in list, Is not in list

Examples

Let's explore how visibility rules and display conditions can be applied in various scenarios:

  1. Element Presence: A popup appears only when a specific button is visible on the screen.

  2. URL-Based Conditions: An announcement is displayed only when users navigate to a particular URL.

  3. Timed Announcements: A notification about an upcoming event is shown only during a specified time period.

  4. User-Specific Content: A survey is presented to users who have completed a specific workflow.

  5. Platform-Specific Content: A message about mobile app updates is shown exclusively to users accessing the application via a mobile device.

Visibility rules and display conditions are indispensable tools for content creators striving to deliver personalized and engaging experiences within applications. By harnessing these capabilities effectively, content creators can optimize user engagement, streamline onboarding processes, and enhance overall user satisfaction. As applications evolve, mastering visibility rules and display conditions will be crucial for staying ahead in user experience design.

Choosing the Condition Type

As a content creator, you can select from various rule types, broadly categorized as Screen Presence, Timing, User Property, and User Action. You can choose specific rules within these categories, detailed below:

Screen Presence:

Condition Type

Description

Operators

On Screen Element

  • Element presence

  • CSS

  • Xpath

Checks an element on-screen for visibility, content length, or type

  • Is visible/Not visible

  • Exists/Not exist

  • Text is

  • Text is Not

  • Text is Like

  • Text is Not Like

  • Text is Empty

  • Text is Not Empty

  • Regex

URL

  • URL

  • URL Hostname

  • URL Path

  • URL Parameters

  • URL Hash

Checks either the current URL or the referral URL (the URL from which the user navigated)

In the context of the same app, the system should auto-identify the page

  • Equals

  • Not equals

  • Contains

To see examples for each condition type, click Screen Presence as a Visibility Rule

Timing:

Condition Type

Description

Operators

Date

Checks dates like day of the week, month, or specific dates

  • Greater than

  • Less than

  • Between

Time

Checks specific time of the day (HH:MM) for the end user

  • Greater than

  • Less than

  • Between

To see examples for each condition type, click Timing as a Visibility Rule

User Properties:

Condition Type

Description

Operators

User Data

 

Checks cookies in the user’s browser, JavaScript variables, or other data.

Also, data based on window storage, local storage, session storage, cookie storage.

  • Equals

  • Not equals

  • Contains

  • Not contain

  • Starts with

  • Ends with

  • Greater than

  • Less than

  • Regex

Platform

Checks the platform Apty is running on -Windows/Mac/Mobile

  • Equals

  • Not equals to

Browser

Checks the current browser type for the end user

  • Equals

  • Not equals to

  • Contains

To see examples for each condition type, click User Properties as a Visibility Rule.

 

User Actions:

Condition Type

Description

Operators

User Activity

Checks whether a checklist or other content has been finished by the end user

  • Is completed

  • Is not completed

  • Is initiated

  • Is not initiated

Clicks/Hovers (Autotrigger)

Triggers workflow based on user click/hover on an element

  • Clicks on

  • Hovers on

  • Does not click

Input Value (Autotrigger)

Based on the value the user inputs in a field

  • Equals

  • Not equals

  • Contains

  • Not contain

  • Starts with

  • Ends with

  • Greater than

  • Less than

  • Regex

User Inactivity (Autotrigger)

If the user remains inactive for a certain period of time

  • At least (seconds)

To see examples for each condition type, click User Actions as a Visibility Rule.

Understanding and effectively utilizing these rules will enable you to create dynamic and context-sensitive content, enhancing the overall user experience by displaying the right content at the right time based on various conditions.

Setting Up Visibility Rules: A Step-by-Step Guide

  1. Log into Apty Studio:

    1. Begin by logging into the Apty Studio.
      Studio Login

  2. Access Workflows:

    1. Proceed to the "Workflows" section.
      Workflows

  3. Select Workflow:

    1. Locate and open the desired workflow where you intend to implement visibility rules.

  4. Access Visibility Icon:

    1. Select the visibility icon positioned on the START icon.

       visibility icon
  5. Name the Rule:

    1. Input a descriptive name for your rule.
      nam efor vb rule

  6. Define Conditions:

    1. Follow the If This Then That (IFTTT) rule structure for your conditions.

    2. Incorporate the required conditions as per your specifications.

       required conditions
  7. Add Additional Conditions:

    1. Click on the "+Action" button to append additional conditions to your rule.

      add condition 
  8. Save your visibility rule.

Only one visibility rule is permitted per workflow, yet multiple conditions can be incorporated into this rule.

Exploring Visibility Rules for Different Content Types:

Workflow

Every time a content creator designs a workflow for a business process, they meticulously define display conditions. These conditions determine when and to whom the content will be visible, ensuring it's presented only under specific circumstances.

Workflow has 3 types of rules: Visibility rules, Auto-trigger rules & Split step rules.

  • Visibility rules: Based on the display conditions, content creators can decide when to show workflow in the widget or hide workflow from the widget. The visibility rule is applied at the workflow level.

  • Auto-trigger rules: Based on the auto-trigger conditions applied to a step of a workflow, content creators can auto-trigger a workflow from that step in case the conditions are met.

  • Split step rules: Used to create conditional paths within a workflow.

Example: For instance, consider a scenario where a financial institution seeks to implement sophisticated display conditions. They may desire a setup where a workflow automatically triggers playback whenever end-users encounter errors on their interface. This automation ensures that users receive timely assistance precisely when they encounter challenges, enhancing overall user experience and operational efficiency.

 wf eg

Validations

When content creators establish validations for input fields within a business process, they often require these validations to be activated under specific conditions. These conditions typically hinge on the user's interactions with the input fields within the host application. These validations, known as contextual and dependency validations, ensure that the data entered meets predetermined criteria.

The Rule Engine in the validation system allows content creators to set up conditions precisely. This ensures that validations only happen when the right conditions are met.

Example: For instance, let's consider a scenario involving a company named 'XYZ'. They stipulate that for leads originating from the medical industry, the revenue amount must exceed $50,000. In this case, the validation would only be triggered if a user selects 'retail' from the industry type dropdown and enters a revenue value below the designated threshold. This setup allows for granular control over when validations are applied, ensuring data accuracy and compliance with business rules.

 validations eg

Tooltips

When content creators creates tooltips to enhance user understanding of specific on-screen elements, they often incorporate display conditions to ensure optimal user experience. These conditions dictate when the tooltip should be presented, tailoring its visibility to specific user actions, on-screen elements, or even the current URL.

Example: In a sales management application, you want to provide guidance when users reach the "Closed Won" stage for a deal. You decide to display a tooltip when users navigate to the "Closed Won" stage on the deal details screen.

 tooltip eg

Launchers

When content creators design launchers to promptly draw users' attention to essential elements like workflows, videos, or URLs, they frequently integrate specific display conditions. These conditions ensure that the launcher is presented selectively, targeting a particular subset of users based on predefined criteria. These criteria may encompass various factors such as on-screen elements, user interactions, or even the current URL, thus optimizing the user experience.

Example: Let's take the case of client 'XYZ,' who seeks to implement a survey button launcher within their application. However, they want this launcher to be visible exclusively to users who have completed all the onboarding checklist items. By setting up such tailored display conditions, 'XYZ' ensures that the survey button is displayed only to users who have fulfilled the prerequisite conditions, enhancing the relevance and effectiveness of the launcher. This targeted approach boosts user engagement and makes it easier to gather feedback, resulting in a better overall user experience.

 launcher eg

Announcements

When content creators create announcements to communicate crucial information to users, they often incorporate specific display conditions. These conditions ensure the announcement is presented selectively, targeting a particular subset of users based on predetermined criteria. These criteria can vary, encompassing factors such as on-screen elements, user interactions, or the current URL, thus optimizing the announcement's impact and relevance.

Example: In a scenario with client 'XYZ,' they want to show a congratulations announcement within their application, but only to users who achieve specific milestones, such as completing a specific set of tasks. By using tailored display conditions, 'XYZ' ensures the message is delivered when it's most relevant. This targeted communication boosts user recognition and enhances their experience with the platform.

 user activity eg

Auto Trigger (Workflows)

Currently, end users need to search for a workflow in the widget and click on it to start, which can create friction and delay in providing immediate help.

This update enables content creators to configure auto-triggers for workflows based on defined display conditions. By specifying these conditions, workflows will automatically initiate when the criteria are met, eliminating the need for manual search and initiation, thereby providing users with immediate, context-sensitive assistance.
This feature allows content creators to configure workflows to automatically trigger based on predefined conditions, ensuring users receive guidance exactly when and where they need it.

Creating Automatic Triggers: A Step-by-Step Guide

  1. Open Workflow Step:

    1. Open the workflow step where you want to add an automatic trigger.

  2. Access Display Conditions:

    1. Navigate to the top of the Studio.

    2. Click on "Display Conditions".
      auto trigger create 

  3. Name the Rule:

    1. Enter the rule name.
      auto trigger name

  4. Define Conditions:

    1. Add the required conditions for the automatic trigger.

       auto trigger conditions
  5. Add Additional Conditions:

    1. To add more conditions, click the plus icon.

      add condition-1 
  6. Save the Rule:

    1. Click "Save" to save the visibility rule.

Example:

A Salesforce Lightning application automatically triggers a workflow when a user navigates to the "New Opportunity" tab. This workflow guides the user through the process of creating a new opportunity.

new auto trigger

Split Step (Workflows)

As a content creator, you can now set up advanced display conditions for jump step functionality in workflows, allowing the workflow to navigate to the required step (either within the same workflow or a different one) based on specified conditions.

Previously, the jump step functionality in the studio allowed content creators to add jumps based on a limited set of conditions, primarily focused on element presence and storage. This update expands the range of conditions available and makes the process more intuitive and user-friendly.

Adding a Split Step: A Step-by-Step Guide

  1. Select Workflow:

    1. In a new or existing workflow, hover between the steps where you want to add the split step.

  2. Add Split Step:

    1. Click the plus icon.

    2. Select "Add Split" from the menu.

       add split step
  3. Create Visibility Rule:

    1. In the horizontal view of the Studio, open the side panel.

    2. Choose to create a new visibility rule or select one from the library. add rule split

  4. Name and Define Conditions:

    1. Give the new rule a name.

    2. Add the required conditions.

      add split conditions 
  5. Add Additional Conditions:

    1. To add more conditions, click the plus icon.

       add condition-1
  6. Save the Rule:

    1. Click "Save" to save the visibility rule.

By following these steps, you can easily create and customize split steps in your workflows.

Example:

Consider a scenario where users need to follow different processes based on the type of business (e.g., new vs. existing). In this case, when creating a new opportunity, users can select "New Business" to proceed with the standard opportunity creation process, while choosing "Existing Business" splits the workflow, directing users to the account renewal process.

 new split rule eg-1