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

svendecabooter’s picture

Are you sure your regex code is valid?

gopisundar’s picture

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

svendecabooter’s picture

I'll have to look into this table element. Haven't used it myself.
I'll report back when i found some time...

gopisundar’s picture

@svendecabooter
Thanks for considering this post. waiting for your reply soon:)

liam morland’s picture

Status: Active » Postponed (maintainer needs more info)

Do you mean the grid component type?

gopisundar’s picture

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

liam morland’s picture

Status: Postponed (maintainer needs more info) » Active
liam morland’s picture

Title: Webform validation not working for fields created using table element » Work with components created with the Webform Table Element module
Version: 7.x-1.1 » 7.x-1.x-dev
Component: Miscellaneous » Code
Category: support » feature
Priority: Major » Normal

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

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is no longer supported. If this applies to a supported version, please re-open.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.