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

"Other... field is required" bug #147

Open
ghost opened this issue May 15, 2019 · 1 comment
Open

"Other... field is required" bug #147

ghost opened this issue May 15, 2019 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented May 15, 2019

This one's a bit tricky, as it involves Webform, Select or Other and conditionals. If this isn't the right place for this bug report, then I can move/re-create it elsewhere.

Steps to reproduce:

  1. Install Webform and Select or Other
  2. Create a webform
  3. Add a textfield (we'll call it 'text')
  4. Add a required select option list (we'll call it 'options') ('required' is necessary for the conditional later)
  5. Add some options to 'options' (e.g. 'one', 'two', 'three') and tick 'Allow "Other..." option'
  6. Go to Conditionals tab and setup the following: If 'text' is blank then 'options' is required
  7. Save and view the form

If you leave 'text' blank and select one of the regular 'options' (e.g. 'two') then submit the form, you'll get two errors:

options Other... field is required.
field is required.

I'm not sure if the bug is in Webform (as it provides the conditionals and integration with Select or Other) or if it's in Select or Other...

Also interesting to note is that if you add other required fields to the form and leave them blank when submitting, you get an AJAX-y popup telling you to choose/enter a value. However the issue above with the Other field only happens after submitting the form (i.e. it's a different type of validation I guess).

@ghost ghost added the bug label May 15, 2019
@klonos
Copy link
Member

klonos commented May 15, 2019

I confirm this bug; not sure about what the problem is though.

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