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

[FormBuilder] Should we add getters/setters ? #6

Open
MangelMaxime opened this issue Nov 8, 2019 · 0 comments
Open

[FormBuilder] Should we add getters/setters ? #6

MangelMaxime opened this issue Nov 8, 2019 · 0 comments
Labels

Comments

@MangelMaxime
Copy link
Contributor

Issue by MangelMaxime
Thursday Nov 29, 2018 at 12:34 GMT
Originally opened as MangelMaxime/Thoth#93


Currently the only supported way to get back values from the Form is by calling Form.toJson.

Some people asked to get access to a field value on submit.
Possible API: Form.getValue "field-name"

The difficulty is if the fields value should return different types.

For example:

  • an input returns a string
  • an select returns a Key option
  • a color picker could return Color option
  • etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant