Widgets logic allows you to control the content that is going to be displayed to each respondent depending on specific criteria. Widgets are different formats of content that you can include in your PDF report.
If you include variables in the data fields of a graph or text, it will display customized data from the responses. You could choose to show an answer given to a question, the score from a question or question block, or many other variables.
You can create rules so that your content is only displayed when certain criteria are met, however If you want to show a general widget that is visualized every time a PDF report is generated, you can choose not to include any rules.
This guide will teach you:
1. Setting up a widget
Start adding the widgets that allow you to create a fully personalized PDF report for each respondent. There are many different options you can choose from, to create a professional report. Here is a full list, to learn how to add amazing personalized charts and content.
2. Set up logic rules
Be aware that if you have serverside formulas, you can't combine them with widget logic.
2.3 Custom score
2.1 Answer on a question
In this case, you can select to show your content if an answer to a question is equal/not equal to a number or it is anything. This allows you to control exactly when this content will be displayed.
2.2 Response on Intro field
If you are using Intro fields, you can select them as a condition to display or not your block. You can choose a specific answer on Intro field, or set up any other rule you prefer.
2.3 Custom score
You can select between the custom score on question, question block or questionnaire or even combine those conditions to limit even more who can see a specific piece of content. Here you can see an example of a nested condition:
The limits you set up, when you use the "is between" filter, are included (in this case, 80 and 100 are included). Also make sure to set up your conditions in the correct order. The values should be put in from low to high.
You can use the same PDF for your multiple languages questionnaire, but display different content blocks depending on the language.
Use your contacts Email, Unique Identifier or Personal D, to display or not your content.
If you have set up formulas or average formulas you can use them to define if and when your content will be displayed.
Average formula logic can not be combined with other logic rules.
If you have set up outcomes, you can choose an outcome as the criteria for displaying your content. Choose outcome from the drop-down menu and then select what the outcome should or should not equal so that the content will be shown. You can set the outcome as the only criteria, or as an additional criteria as shown below. In this example, we clicked the purple + button and added that the content should be shown if both the response on intro field criteria AND the outcome criteria is fulfilled.
After setting up your conditions, don't forget to create a new response in order to see if it works.
- You can pre-fill the Intro fields (learn more about Intro fields ) to save respondents time and get their attention. If you have a field asking for the respondent's name, use a URL parameter to pre-fill this field if you already know their name and simply ask respondents to check the spelling, rather than making them enter data unnecessarily.
- Conditional Rendering is a way of displaying elements based on a condition. It allows you to create simple conditions and reduce the number of widgets and rules. With Conditional Rendering, you can render different UI markups based on certain conditions.
- Piping Variables