Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/action-element-condition-as-display-rules

# Action Element conditions as Display Rules

- [Introduction](/web/action-element-condition-as-display-rules#introselected)
- [Types of Action Element condition rules](/web/action-element-condition-as-display-rules#typesselected)
- [Use Cases](/web/action-element-condition-as-display-rules#usecaseselected)

## Introduction

To ensure that performing an action on a particular element triggers the branched Flow, 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.

The following are the Action Element rules:

[Action Element Is (Select Element/CSS Selector/jQuery Selector)](/web/action-element-condition-as-display-rules#actionelementis) [Action Element Text (Select Element/Is, Is One Of)](/web/action-element-condition-as-display-rules#actionelementtext)

> [!WARNING]
>
> The Action Element rules are available only under Display Rules for Branching in a Flow. For more information, see [Branching in Flows](/web/branching-in-a-flow).

## Types of Action Element condition rules

### Action Element Is (Select Element, CSS Selector, or jQuery Selector)

- Whatfix enables you to select an element as a Display Rule by using the **Select Element** option from the dropdown. Clicking this element triggers the branched Flow. ![Studio\_Flow\_Branching\_Rule.png](/images/82/Studio_Flow_Branching_Rule-822d0676.png)
- Web applications use unique IDs for some elements on the page. Add the unique ID as a **CSS Selector or jQuery Selector** for the element. This is used when your element needs to be selected from a list of options. For example, a dropdown menu. ![Studio\_Branching\_Selectors.png](/images/ad/Studio_Branching_Selectors-add8177b.png)

The following are examples of jQuery selectors:

- $("#firstname"): Selects the element with id="firstname"
- $(".primary"): Selects the element with class="primary"

The following are examples of CSS selectors:

- input\[title="Search"]: Selects the input element with the title "Search"
- \[id="#analytics-left-pane"]: Selects the element with the id="analytics-left-pane"

### Action Element Text (Is or Is One Of)

This is the text that is displayed on the Action Element that is selected. If your application supports multiple languages, choose the **Is One Of** option and add the name with a comma(,) as a delimiter. ![clm\_branching DR\_action element is](/images/d1/clm_branching-DR_action-element-is-d1de2fa7.png)

> [!INFO]
>
> The value is case-sensitive.

## Use Cases

**Trigger a branched Flow on options inside a dropdown**

Consider that you want to trigger a branched Flow on one of the options inside a dropdown. These options have unique identifiers (IDs) as CSS Selectors.

1. On the Whatfix Studio, select the rule as **Action Element Is** and **CSS Selector**. ![Studio\_Action\_element\_Is.png](/images/d5/Studio_Action_element_Is-d51b16c2.png)
2. Enter the selector. ![Studio\_Flow\_Action\_element\_Is\_Selector.png](/images/5f/Studio_Flow_Action_element_Is_Selector-5f798f53.png)
3. Finish creating the Whatfix Flow.

**Trigger a branched Flow when there are no unique identifiers for the elements**

Consider that you want to trigger a branched Flow on buttons that don't have unique identifiers other than button names. In such a scenario use the Action Element Text to ensure that the branched Flow triggers correctly.

1. On the Whatfix Studio, select the rule as **Action Element Text** and **Is**. ![Studio\_Action\_element\_Text\_is.png](/images/1e/Studio_Action_element_Text_is-1efe7b15.png)
2. Enter the button name. ![Studio\_Action\_element\_text.png](/images/b7/Studio_Action_element_text-b7f9936d.png)
3. Finish creating the Whatfix Flow.

## Related

- [Branching in a Flow](/web/branching-in-a-flow)
