Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a webform I created an 'amount' field with a selection of numerical values and the other option. I want this to be validated as numeric. I have webform_validation enabled and clientside_validation enabled. I get the following error message when the form is loaded:
Notice: Undefined index: element_name in clientside_validation_webform_add_webform_validation() (line 189 of /..../sites/all/modules/clientside_validation/clientside_validation_webform/clientside_validation_webform.module).
Comments
Comment #1
Matt BTesting my form with clientside_validation disabled, the server side validation from webform_validation do work. Re-enabled clientside_validation and the errors still appear.
The select_or_other field is not validated on the client side.
All the other fields validation works as expected.
Invalid entries on the select_or_other field are picked up server side.
So a work around for me is to atleast suppress the error messages - if this cannot be validated client side.
Comment #2
haydeniv CreditAttribution: haydeniv commentedThis sounds more like a problem with Client Side Validation and not this module. This module uses FAPI for it's validation.
Comment #3
haydeniv CreditAttribution: haydeniv commentedMoving this to appropriate queue.
Comment #4
attiks CreditAttribution: attiks commentedsee #1813938: Add support for Select (or other) module