neos / form-builder

Flow Form Framework integration into Neos CMS
GNU General Public License v3.0
18 stars 30 forks source link

Access labels of form #87

Open signalwerk opened 3 years ago

signalwerk commented 3 years ago

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:

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?