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

Add ability to pass in an array variable or template for dropdown field options, or variables/templates for each item, and allow separate selection values and labels #2870

Closed
BLoe opened this issue Mar 4, 2022 · 0 comments · Fixed by #2963
Assignees
Labels
enhancement New feature or request medium T-shirt sizing page editor user experience Improve the user experience (UX)

Comments

@BLoe
Copy link
Contributor

BLoe commented Mar 4, 2022

In the form editor, a for dropdown-type-field's options, allow the following:

  1. Pass in an array variable containing all the option strings
  2. Pass in an object variable, using the keys as enum and the values as enumNames in the json-schema (maybe this should be opposite with how keys/values are used?)
  3. Use a (string) variable for one of the options
  4. Set a template string for one of the options
  5. Allow hard-coding text for separate option-value and display-label (enum vs enumName in json-schema) for an individual option
  6. Allow passing in variables for the value and label for an individual option
  7. Allow setting string templates for the value and label for an individual option
  8. Allow passing in two array variables at the top level, one for enum and one for enumNames, with the array order dictating which value goes to which name.
@BLoe BLoe added enhancement New feature or request user experience Improve the user experience (UX) page editor medium T-shirt sizing labels Mar 4, 2022
BALEHOK added a commit that referenced this issue Mar 15, 2022
…wn field options (#2915)

* 2870 using ArrayWidget for dropdown options in the Form Builder

* 2870 fixing preview

* 2870 Pull fields and widgets from BS4 theme

* 2870 Dropdown with labels

* 2870 tests

* 2870 fixing types

* 2870 fixing types

* 2870 Fixing default and no option errors

* 2870 Dropdown text option tests

* 2870 Enable var in Dropdown with labels

* 2870 removing options mapping

* 2870 Fixing merge conflicts

* 2870 linting
BALEHOK added a commit that referenced this issue Mar 17, 2022
* Revert "2870 removing options mapping"

This reverts commit d9ba8b3.

* 2870 map DD to DD with labels. Tests

* 2870 typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium T-shirt sizing page editor user experience Improve the user experience (UX)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants