Hi,
I created two textfields with five rows under a table element component in a webform and validated those two fileds using webform validation(regex code). But validation is not working for those fields. Even if i make those fields manditory and submit the form without filling it "field is required" error messege is not been displayed. Is there a way to resolve this?
Comments
Comment #1
svendecabooterAre you sure your regex code is valid?
Comment #2
gopisundar commented@svendecabooter
One of the text field which i gave under table element accepts only alphabets. so i used regex code ^[A-Za-z]{1,128}$ to do this. In the same form for a seperate textfield which is not under webform table element the code works good and shows error if the input value does not match the regex code. And later on after i posted this message i found that if i enable clientside validation only the last row of the textfield under the table element shows error if the input value does not match the regex code.
This works if the field is manditory or not.
Comment #3
svendecabooterI'll have to look into this table element. Haven't used it myself.
I'll report back when i found some time...
Comment #4
gopisundar commented@svendecabooter
Thanks for considering this post. waiting for your reply soon:)
Comment #5
liam morlandDo you mean the grid component type?
Comment #6
gopisundar commentedNo there is a module called "Webform table element" which can be used to create table like structure in webform. When this module is installed a new component type called 'table element' will be added under component type.
Comment #7
liam morlandComment #8
liam morlandWork with components created with the Webform Table Element module.
I am not likely to have time to work on this, but will welcome a patch.
Comment #9
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.