Top
Element Precision Rules for Flow Steps on Studio
  • 10 Jul 2025
  • 2 Minutes To Read
  • Dark
    Light
  • PDF

Element Precision Rules for Flow Steps on Studio

  • Dark
    Light
  • PDF

Article summary

Note:

Display Rules are now available as Visibility Rules and Element Precision Rules on Studio.

Currently, this update is in the Beta stage. To enable the feature, contact support@whatfix.com.

What are Element Precision Rules?

Element Precision Rules help ensure that a Flow step appears on the correct UI component, preventing misalignment or flickering. These rules provide precise control over positioning, ensuring that the Flow steps consistently appear in the intended location.

Types of Element Precision Rules

Rule

Description

Example

Using CSS selector

Identifies an element using a CSS selector. It is useful when elements have unique identifiers or specific class names. CSS selectors help in precisely targeting elements based on attributes such as class, ID, or hierarchy.

Display the Flow step only if an element with .help-button exists.

Using jQuery selector

Identifies an element using a jQuery selector, which enables more advanced element selection, including filters and conditions. It is useful when you need to select elements dynamically based on complex conditions.

Display the Flow step when an element matching $("div[data-role='popup']") is found.

Using Element Text

Identifies an element based on the visible text it contains. It is useful when targeting buttons, labels, or other text-based elements.

Display the Flow step if the button text is Login.

Note:

Adding CSS Selectors ensures that Whatfix can easily find the required element and reduce the possibility of displaying content or widgets on the wrong element.

Use Cases

Display Flow steps on options inside a dropdown

Consider that you want to show a Flow step on options inside a dropdown in your application. These options have a unique identifier, ID (CSS Selector), used to identify the element. Use the Using CSS selector rule and specify the CSS selector value to ensure the Flow step appears correctly on the desired element.

  1. On Whatfix Studio, click Element Precision.

  2. Select Using CSS selector from the How would you like to identify the element? dropdown.
    .

  3. Enter the selector Value.

  4. Complete creating the Whatfix content.

Display Flow steps when there are no unique identifiers for the elements

Consider that you want to display a Flow step on a button in your application. The button has no unique identifiers such as IDs or specific classes. The only distinguishing factor is the button text. In such cases, use the Using Element Text rule to ensure that the Flow step appears correctly on the intended button.

Note:

Whatfix recommends that you use the Using CSS selector rule, followed by the Using Element Text rule while adding Element Precision Rules to Launchers.

  1. On Whatfix Studio, click Element Precision.

  2. Select Using CSS selector from the How would you like to identify the element? dropdown.

  3. Enter the selector Value.

  4. Click Add condition.

  5. Select Using Element Text from the How would you like to identify the element? dropdown.

     

  6. Select Contains from the dropdown.

  7. Enter the button Value.

  8. Complete creating the Whatfix content.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.