Whatfix enables you to customize Surveys to provide a personalized experience for your end users. Use variables for Survey personalization. Add a variable inside a Survey and replace it with any value evaluated on the end user's page where the Survey is displayed.
For example, when you want a Survey to be displayed with the name of the application on which the Survey is displayed, you can create a variable and add it to the Survey. This variable fetches the application name associated with the attribute. The variable is replaced with the application name.
How to add a variable in a Survey?
Use the following steps to add a variable in a Survey:
-
Log in to the application where you want to create content, and then launch the Whatfix Studio.

-
Under WIDGETS, click Survey.

- Enter a name for the Survey.

The Survey name is solely for your reference and is not visible to the end user.
-
Make the following configurations to your Survey header.
- Enter the Title.
- Enter the Description.
- Change the Background color, Text color, and select the checkbox to show '*' for the mandatory questions according to your requirement.

-
Select the Question type using the dropdown, and then enter the question.

You cannot edit the survey once it is live.
- Add a variable that needs to be replaced with the data evaluated from the end users' page.
Add the variable in the following format:
{{Attribute}}
Replace the word 'Attribute' with any other word as per your use case. For example, use {{Application}}, {{Name}}, etc.
Add the following code in the Advanced Customization(AC),
window._wfx_settings.survey_data = {
"params":{
"attribute" : window.a,
"application" : window.b,
"tag" :"Whatfix"
}
};
where,
- attribute, application, and tag are the variables created.
- window.a, window.b, Whatfix are the attributes that fetch the values evaluated from the end users' page on which the Survey is shown.
You cannot edit the Survey once the Survey is published. However, you can edit the Survey in the Draft and Ready stages.
-
To add a new question, click + Add Question.

-
To add conditions, click the Add condition icon. The condition enables you to determine which question appears next based on the users' response.
.png?sv=2026-02-06&spr=https&st=2026-07-03T04%3A14%3A23Z&se=2026-07-03T04%3A27%3A23Z&sr=c&sp=r&sig=Yur8CUniCTPg29D2PjAwTuUVpG%2FbIyL8xS5Jbm0EsmM%3D)
- For more information on the different question types, see Question Types in Survey.
- To make a question mandatory, enable the Required toggle on.

-
Edit the End Message section

You can make the following configurations to your Survey header.
- Type the Message.
- Add the Subtext.
- In the Close button text section, edit the text as required.
- Change the Background color and the Text color of the Close button according to your requirement.
-
On Whatfix Studio, under the CONTROL panel, enable the following toggles:
-
Dismissable: Enable this toggle to give your end users' an option to close/dismiss the Survey.
-
Minimize: Enable the toggle to give your end users' an option to minimize the Survey and defer taking the Survey.
-
Allow anonymous responses: Enable the toggle if you don't want to collect the responder's data.
-
Don't show me again: Enable the toggle to include a don't show me again button. Once the end user clicks it, the Survey won't be shown again irrespective of the occurrence set.
-
Position survey: Enable the toggle to change the positioning of the survey.

-
Click Save.

-
On the Dashboard, in the Widget section, hover your cursor over the Survey you want to edit, and then click the Edit icon.

If you have the enhanced Whatfix Dashboard, use the following steps:
a. On the Whatfix Guidance dashboard, click Widgets.

b. Click Surveys.

-
Click Set Visibility Rules.

-
Set the Where does the survey appear? Visibility Rules for the survey to appear.

- For more information, see Visibility and Display Rule Conditions.
- If you use new visibility rules, see New Visibility Rules for Widgets.
- Set the When does the survey start appearing? Visibility Rules for the survey.

Once the user responds to the survey, the survey won't be shown again, irrespective of the occurrence set.
- Click Edit Survey or Save depending on your preference.
