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

Radio/Checkbox lists with "Other" option needed #79

Open
jace opened this issue Jan 21, 2015 · 0 comments
Open

Radio/Checkbox lists with "Other" option needed #79

jace opened this issue Jan 21, 2015 · 0 comments

Comments

@jace
Copy link
Member

jace commented Jan 21, 2015

RadioField and SelectField (with Checkbox widget) currently do not support an "Other" option. This is often required and should be fairly easy to implement:

  1. Provide alternate widgets that append a text field with an "Other" label at the bottom of the list, using the same name value (with '-other' suffixed) so that the contents of the field are submitted.
  2. Use a sensible placeholder value in the radio/checkbox widget on the form to indicate to the field that the name-other field's value should be read. Perhaps just a blank string as anything else could potentially conflict with existing choices.
  3. Provide alternate fields that don't strictly validate against the choices list and look in name-other for values.
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