How to use the raise error block
Use a raise error block if you want to prevent a form from submitting, for example when a certain condition is (not) matched.
When to use
In general the raise error blocks shows an error message in your form without the possibility to proceed and submit the form. Why would you want that?!
Your forms in Tripetto of course automatically validate inputs of respondents. For example a required field that's not filled out will be marked with an error and preventing the form from being submitted.
But we can imagine more complicated situations where the form cannot validate automatically.
For example you could have a survey in which your first question is a yes/no question to determine if the respondent meets your requirements. If the respondent answers 'No', you don't want the form to be submitted, as it will provide not valuable data to your responses. So in that case you can raise a custom error message to let those respondents know this survey isn't meant for them.
How to use
The hidden field block is available as a question type. Add a new block to your form and then select the question type
Raise error. You can add it in any given position and in an unlimited amount inside your forms.
Of course make sure you only add a raise error block on the right places in your form's structure, as it prevents a respondent from finishing your form.
You can now add the error message you'd like to show to your respondents. The error message will be shown as a common block inside the form, but without any interaction visible, preventing the respondent to finish the form.
The following fields are available for the error:
The main title of the error message.
An additional description in the error message.