Welcome,
How Can We Help You?

Rules on placeholders & serials

Set rules to serials 

In the serial question, it is possible to set a condition based on the number of instances of a serial question.

First, create a serial question and then an element to be ruled with the respective number from the serial. To do this, click on the RULES button next to the element to be ruled or create an INLINE-RULE, the rule window will open. In the questionnaire, scroll to the serial question that is to be linked to it and click on the number "1" in the serial question. 
 

You can now define the mathematical rule in the rule window: 

You have the choice between:
  • is equal to 
  • is less or equal to
  • is less than 
  • is greater or equal to 
  • is greater than 
You can also change the number to which this rule applies, just enter the number you need. 

With DONE you confirm the rule and close the rule window.

Tip

By setting a rule on a serial, you can skip the grammatical question of the singular or plural ("Is there more than one company involved on the first side of the agreement?") and instead set a rule on the serial question "is greater than 1". 

 

Set rules to placeholders

You have the possibility to regulate elements with a specification from a text field semantically. To do this, create a text question with a text field and the element to be regulated. Now click on the element to be ruled and on the RULES button or create an inline rule so that the rule window opens: 
If the answer "Berlin" is now entered in the text field for the question "Location of the company", the text field is displayed. 
You can choose between different semantic or mathematical links. To select, simply click on the upward-pointing triangle next to the existing selection. 
To change the input, simply click on the field (in the example "Berlin") and enter the value to be linked.

Input dependency

An interesting use case for semantic rules on placeholders is input dependency. Thus, by setting an inline rule on the placeholder and defining [a-zA-Z0-9] in the rule, one can specify that the placeholder is only displayed if certain characters are included in the input. In this case, for example, all letters from a-z in upper and lower case and numbers.

This code could also be changed to [0-9] or [a-z]. The condition would be fulfilled in the first case if numbers were entered and in the second case if any letters were entered. If you want to specify an arbitrary input as a condition, it is sufficient to insert a point:

This also means it is possible to hide placeholders that have not been filled in or display alternative words. To do this, all you have to do is set the above rule as a negative one on the alternative word.


 

 

 

Was this article helpful?

Can't find what you're looking for?

Our award-winning customer care team is here for you.

Contact Support