form-builder
form-builder copied to clipboard
Access labels of form
I don't know if this is a feature request or a support-question. Please forgive me if it's the later one.
I have the following element in a form built by form-builder:
- Multiple Select (Checkboxes) – identifier:
multi
- Options
- Option A – value:
option-a
– label:a very elaborate text here for A
- Option B – value:
option-b
– label:a very elaborate text here for B
- Option A – value:
- Options
In my Email Finisher I can now use:
<f:for each="{form.formState.formValues.multi}" as="item">
<f:if condition="{item} == 'option-a'">
– a very elaborate text here for A
</f:if>
<f:if condition="{item} == 'option-b'">
– a very elaborate text here for B
</f:if>
</f:for>
This is somewhat unpleasant because I have to repeat every option with its text in the finisher. Is there a way to get the labels in the finisher, so I can place them somehow dynamically?