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

Enhancement: Add support for choice fields with ID and Title #121

Closed
estruyf opened this issue Sep 30, 2021 · 0 comments
Closed

Enhancement: Add support for choice fields with ID and Title #121

estruyf opened this issue Sep 30, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@estruyf
Copy link
Owner

estruyf commented Sep 30, 2021

To have a more dynamic approach for setting choice field values and update these in the site generation process, it would be nice to have support for ID and Title.

{
          "title": "Multi-select with ID",
          "name": "choiceId",
          "type": "choice",
          "choices": [
            { "id": 1, "title": "Choice 1" },
            { "id": "2", "title": "Choice 2" },
            { "id": "3", "title": "Choice 3" }
          ],
          "multiSelect": true 
}

The user can choose if they want to use a string or { id: string; title: string} object.

estruyf added a commit that referenced this issue Sep 30, 2021
@estruyf estruyf added this to the 4.1.0 milestone Sep 30, 2021
@estruyf estruyf added the enhancement New feature or request label Oct 3, 2021
@estruyf estruyf closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant