I'm using a text field with multiple options to create only one checkbox with webforms. This required field has the error message
"The field xyz is required". If I use clientside validation the same field draws the error message "Minimum 1, maximum 99". Why?
How I can get the same error message with clientside validation as without?

Comments

attiks’s picture

Version: 7.x-1.38 » 7.x-1.x-dev

This should be fixed in the dev version, can you try please?

mmtt’s picture

I've tried the last dev but it's still "Minimum 1, maximum 99" message . All caches were emptied and I tried it as admin.

Sorry, not the text field produces the message. It's a "Select options" filed with on option an the activated "Multiple" checkbox in the form to get a checkbox and not an option field. Maybe you can change the wrong title.

attiks’s picture

I'm able to reproduce it, narrowed it down to an error in clientside_validation.js where that message is set, but the right string '!field is required' is passed in Drupal.settings.

I'll try to investigate it

attiks’s picture

Fix pushed to dev version

  • attiks committed 60c899e on 7.x-2.x
    Issue #2180281 by mmtt: Text field with  Multiple Options.
    
attiks’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.