Guide
IF Placeholder

IF Placeholder

The IF placeholder are a special type of placeholder that allows users to hide or display information in your document. For the IF placeholder, the content in question should be enclosed within the placeholder. As with all placeholders, the names should be purely alphanumeric and the insertion method is the same as the short/long placeholder when inserting text.

IF condition

To choose whether to display or hide the content surrounded by an IF placeholder, click the dropdown as shown below. Once you are done, press "Set Condition" to append the placeholder into your document.

IF Interface

Once the condition part_time is set with the "Displayed" parameter, that paragraph will only display if the form filler selects an option with the part_time tag.

If the "Hidden" parameter was selected instead, the paragraph would be deleted from the generated document if the form filler selects an option with the part_time tag.

Common FormSG fields used for this placeholder include the radio buttons, dropdown selection or the checkbox options. You should place your placeholder tags beside the choices of the fields you create, not beside the question.

Linking to FormSG (IF Placeholder)

In FormSG, here's how you would format the tags. The example will utilise the checkbox option in FormSG.

IF FormSG Checkbox

Following the above example, should you choose [indemnity_clause] as the option, then the corresponding paragraph will be shown if the "Displayed" option is set.

If other conditions are selected as well, if that condition was set with the "Displayed"/"Hidden" parameter, that paragraph will only display/be hidden if the form filler selects an option with the relevant tags respectively. In doing so, using checkboxes allow you to choose multiple IF placeholders to satisfy the conditions you require.

In the case that we choose the first and the third option as shown above, assuming all are set to the "Displayed" condition, this is what we could see from the generated document:

IF FormSG Checkbox Generated Result