Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/trigger-a-smart-tip

# Trigger a Smart Tip based on User input

> [!WARNING]
>
> - Whatfix evaluates only one Smart Tip Collection per page at any given time. To show two or more Smart Tips on the same page, create them as part of a single Collection.
> - Whatfix also enables you to display multiple Smart Tip Collections on the same page. To enable this feature, contact [support@whatfix.com](mailto:support@whatfix.com?subject=Request%20to%20enable%20the%20Unified%20Content%20Experience\&body=Hi%20Whatfix%20Support%20Team%2C%0A%0APlease%20enable%20the%20Unified%20Content%20Experience%20for%20my%20account.%0A%0AThanks%2C%0A).

Whatfix enables you to add Triggers to the Smart Tips. Use Triggers to provide contextual nudges to your end users based on some criteria on the underlying application. Select the element and set the conditions based on the text, number, and date fields that are fetched from the underlying application to show a Smart Tip to your users. For example, add text as a condition to show a Smart Tip only when that text is present on the application.

### Use Cases

#### Show a Smart Tip only on a Specific day

You might have a Smart Tip with the information that needs to be shown only on a particular day. In this case, set the date as a Trigger condition and add the date on which the Smart tip should appear.

#### Show a Smart Tip only when a particular text is selected

There might be instances when a user should fill a field in a form based on the options they select from a dropdown. In this case, you might want to show a Smart Tip only when a user selects a particular option from the dropdown. This can be achieved by using text condition as a Trigger, where you add the text and show a Smart Tip based on the text the user selects on the page.

Use the following steps to add a Trigger to a Smart Tip:

1. Log in to the application where you want to create content, and then launch the **Whatfix Studio**. ![CLM\_editor plug in2](/images/f6/CLM_editor-plug-in-2-f67cdef9.png)
2. Under **CONTENT**, click **Smart-tip**. ![image.png](/images/62/image-6NSSUQLX-6236c866.png)
3. Enter a name for the **Smart tip Collection**. ![Add a smart-tip collection name ](/images/e7/Studio_Smart-tips_Collection-e7a9c4dd.png)

   Info:

- A Smart Tip Collection is a group of Smart Tips created on the same page of an application.
- The Smart Tip Collection name is solely for your reference and is not visible to the end user.
- Add a Display Name to keep internal naming conventions, such as region, release, or module codes, out of the labels that appear to your end users. Users then see the Display Name of the Smart Tips in Exports. For more information, see [Add a Display Name to Whatfix Content](/web/add-a-dislay-name-to-whatfix-content).

1. Click **Add help tip** to create a new Smart Tip.

![Add Help Tip ](/images/65/Studio_Smart-tips_HelpTip-651e4561.png)

1. Select an element on the application to which you would like the Smart Tip to point.
2. Enter the purpose of the Smart tip. ![RB\_EDT\_ST\_description](/images/7e/RB_EDT_ST_description-7efa1d7d.png)
3. In the **CONFIGURATIONS** tab, expand the **Interaction** dropdown, and then in the **Display smart-tip on** section select when you want to display the Smart Tip. ![Smart\_tipinteraction.png](/images/f8/Smart_tipinteraction-f8ed7b32.png)
4. Expand **Appearance**, under the **Tooltip** section, make the following configurations:

- **Color**: Select a tooltip **Color** from the existing color picker or enter the hex code of the desired color.
- **Close (X)**: Choose to show or hide the **X** icon on the tooltip by enabling or disabling the **Close (X)** toggle.
- **Close (X) color**: Select the **Close (X) color** from the existing color picker or enter the hex code of the desired color.
- **Title**: Select font size, color, and style of the Tool Tip Title.
- **Description**: Select font size, color, and style of the Tool Tip text. ![ST\_Appearance](/images/88/ST_Appearance-8828e8d3.png)

1. Under the **Icon** section, select the **Type**, **Color**, and **Size** of the icon. ![ST\_Iconlib](/images/f4/ST_Iconlib-f47e9990.png)

> [!WARNING]
>
> Whatfix enables you to add custom icons for Smart Tips. To add custom icons, see [Use custom icons for Smart Tips](/web/use-custom-icons-for-smart-tips).

1. Under the **Positioning** section, adjust the position of the Smart Tip. ![clm\_smart tip\_basic positioning](/images/d1/clm_smart-tip_basic-positioning-d185d04d.png)

> [!WARNING]
>
> The following are the two different positioning modes available:
>
> - In the **Basic** Positioning mode, choose among the four available positions. ![clm\_smart tip\_basic positioning](/images/d1/clm_smart-tip_basic-positioning-d185d04d.png)
> - In the **Advanced** Positioning mode, make micro adjustments to the position of the Smart Tip. Either use the navigational arrows or enter the value in the **Movement on key click(px)** dropdown to change the position by pixels. ![clm\_smart tip\_advanced positioning](/images/e0/clm_smart-tip_advanced-positioning-e0a1811e.png)

1. In the **Tooltip Position** section, choose the position of the tooltip. ![Clm\_smart tip tool position](/images/1e/Clm_smart-tip-tool-position-1eae3a56.png)
2. Go to the **ADVANCED OPTIONS** and then scroll down to the **Triggers** section. ![image.png](/images/61/image-333-615f6ba7.png)
3. In the Triggers section, select **Based on the property**. ![clm\_smart tip\_trigger\_based on property](/images/56/clm_smart-tip_trigger_based-on-property-56b526c3.png)
4. Click **Select element to create a condition**. ![clm\_survey\_select element to create a condition](/images/b3/clm_survey_select-element-to-create-a-condition-b34837c1.png)
5. Click the desired element to which you want to add the Trigger.
6. Once you select the element, use the **Element Preview** icon to preview the selected element. ![Element\_preview\_icon.png](/images/ca/Element_preview_icon-caf5aa7c.png)

> [!INFO]
>
> Use the **Reselect element** icon to reselect the element. ![Element\_reselect\_icon.png](/images/74/Element_reselect_icon-74624fa4.png)

1. Using the dropdown, select the Data type of the trigger. ![clm\_smart tip\_data type](/images/f8/clm_smart-tip_data-type-f887dba1.png)

There are 3 different Data types that can be added as a condition to trigger a Smart Tip, Expand the following accordions for more details:

**Add Date condition as a Trigger**

1. Select the **Data type** as **Date**. ![clm\_smart tip\_data type\_date](/images/b8/clm_smart-tip_data-type_date-b833bec5.png)
2. Choose a **Date Format**. ![clm\_st\_date format](/images/a1/clm_st_date-format-a1681cd4.png)
3. Under the **If date is** section, choose the condition you want to set. ![clm\_smart tip\_operators](/images/1b/clm_smart-tip_operators-1baf1314.png)
4. Add a date specific to your use case. ![clm\_smart tip\_set the date](/images/4f/clm_smart-tip_set-the-date-4f6b13ab.png)
5. To add additional rules, click **+ Add Rule**, and then add the dates. ![clm\_smart tip\_data\_add rule](/images/a2/clm_smart-tip_data_add-rule-a24455da.png)
6. Click **Save Tip**. ![clm\_survey\_save tip1](/images/ec/clm_survey_save-tip-1-ec2537fc.png)

**Add Text condition as a Trigger**

1. Select the **Data type** as **Text**. ![clm\_smart tip\_trigger\_text](/images/79/clm_smart-tip_trigger_text-791c64c2.png)
2. Under the **If text is** section, choose the operator you want to set. ![clm\_smart tip\_trigger\_operators](/images/2f/clm_smart-tip_trigger_operators-2f15df23.png)
3. Enter the **Text** in the text box. ![clm\_smart tip\_trigger\_enter text](/images/98/clm_smart-tip_trigger_enter-text-98008186.png)
4. To add additional rules, click **+ Add Rule**, and then repeat steps 15 to 17. ![clm\_smart tip\_data\_add rule](/images/a2/clm_smart-tip_data_add-rule-a24455da.png)
5. Click **Save Tip**. ![clm\_survey\_save tip1](/images/ec/clm_survey_save-tip-1-ec2537fc.png)

**Add Number condition as a Trigger**

1. Select the **Data type** as **Number**. ![clm\_smart tip\_trigger\_number](/images/2e/clm_smart-tip_trigger_number-2eafed98.png)
2. Under the **If number is** section, choose the operator you want to set. ![clm\_smart tip\_trigger\_number operator](/images/5f/clm_smart-tip_trigger_number-operator-5f1de5b7.png)
3. Enter a **Number** in the text box. ![clm\_smart tip\_trigger\_trigger number](/images/1d/clm_smart-tip_trigger_trigger-number-1dd5efaf.png)
4. To add additional rules, click **+ Add Rule**, and then repeat steps 15 to 17. ![clm\_smart tip\_data\_add rule](/images/a2/clm_smart-tip_data_add-rule-a24455da.png)
5. Click **Save Tip**. ![clm\_survey\_save tip1](/images/ec/clm_survey_save-tip-1-ec2537fc.png)

> [!INFO]
>
> - To add additional Scenarios, click **+Add scenario**. ![clm\_survey\_add scenario1](/images/8c/clm_survey_add-scenario-1-8c078df0.png)
> - Upto 5 combination of Triggers can be added to a Smart Tip.

## Related

- [Data Validation using Smart Tips](/web/data-validation-using-smart-tips)
- [Show a Smart Tip based on a User action](/web/trigger-a-smart-tip-1)
