I have a webform set up, using the webform module, and I am trying to have multiple field sets be mandatory.

For example, I have 6 disciplines (counseling, anthropology, medical,etc) They are fieldsets. Within those field sets I have selections for products which fall into those categories. End-users..for some reason..keep submitting empty forms because I cannot figure out how to make multiple field sets mandatory.

You can check out the webform here http://alexanderstreet.com/support-center/request-trials

When they hit submit, but they haven't picked a discipline or product, I want them to be prompted letting them know they have to.

Any ideas would be greatly appreciated, thanks!

Comments

vernond’s picture

Fieldsets cannot be made mandatory as they are not a source of input data in themselves - they're just containers which may contain input field elements.

Your best bet would probably be a little custom module adding some validation rule code via the Webform Validation module's hooks.

JoeKalucki’s picture

YES.

That did it!

Thank you for your response!

quicksketch’s picture

Status: Active » Fixed

Thanks @vernond!

Status: Fixed » Closed (fixed)

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