PDF: Widget Logic

Widgets are different formats of content that you can include in your PDF report. They are the building blocks of your report. A widget can be a block of text, an image, a chart, a table, and more! 


Essential  ✗
Professional  ✗
Enterprise  
ReportR ✓

Widgets are a way of displaying data, for example, in graphs or tables, based on the respondent's answer. If you include variables in the data fields of a graph widget or the text widget, 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 widgets are only displayed when certain criteria are met. If you want to show a general widget that is visualized every time a PDF report is generated, you can choose not to include a widget logic rule.


In this guide, we'll discuss the following:

  1. Setting up a widget
  2. Set up logic rules


1 Setting up a widget

Start adding the widgets that allow you to create a fully personalized PDF report for each respondent. There's a whole range of widgets you can use to create a professional report.  Here is a full guide of widgets; learn how to add amazing personalized charts and content.



2 Set up logic rules


You can add multiple text widgets to create different text versions for each outcome you have in your questionnaire. To have the PDF show the right text you can add the widget logic rules, similar to the rules in our survey editor. Click add rule and now select which condition from the drop-down menu should be used to decide when to show the widget.


Add logic rule

WARNING

Be aware that if you have serverside formulas, you can't combine them with widget logic.

Add logic rule


Once you've chosen the initial condition, you can specify exactly what conditions need to be met, for example, the answer to the question must be greater than a certain number. If you need a more complex condition, click on the white circle with a purple + sign to add criteria that will be in addition to the other criteria (AND), or instead of (OR).


Add logic rules example


Tip: If you have set up outcomes, you can choose an outcome as the criteria for showing the widget. Choose outcome from the drop-down menu and then select what the outcome should or should not equal so that the widget 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 widget should be shown if both the response on intro field criteria AND the outcome criteria is fulfilled.

add outcome - widget logic rules


NOTE

After setting up your widget logic rules, don't forget to create a new response in order to see if it works.

WARNING

Make sure to set up your logic values in the correct order. The values should be put in from low to high.


widget logic rule - add value

tipTip: The limits you set up are included (in this case, 570 and 759 are included).


Once you've saved your logic rules, don't forget to save PDF, and you're ready to add more widgets!


V
Vincent is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.