#question
The #question data helper can be used to ask a yes/no question without the use of data markers.
The response will affect the content within the template but will not be saved for future use.
This is a great way of quickly customising content using data that isn’t required for future use.
| Example | Output |
|---|---|
| {{#question $includeWill “Should we include an offer of a will?”}}{{#if $includeWill}}Did you also know that we can provide a will with your conveyancing. To order a will, simply complete this short online form here…{{#endif}} | If the user answers the question as “yes”, the defined statement will be outputted.If the user answers the question as “no”, the statement will be ignored. |