Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access labels of form #87

Open
signalwerk opened this issue Apr 21, 2021 · 0 comments
Open

Access labels of form #87

signalwerk opened this issue Apr 21, 2021 · 0 comments

Comments

@signalwerk
Copy link

signalwerk commented Apr 21, 2021

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

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant