Skip to content

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

Open
@ghost

Description

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions