Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Suggestion for Userforms 0.2


4 Posts   814 Views


18 September 2009 at 12:45pm Community Member, 15 Posts


I'm not entirely sure this is the correct place to make a suggestion for Userforms, but I know the people who develop it read here regularly.

I'll explain the (simplified) scenario first, which will hopefully make the request a bit clearer.

We have a form that has a common section, then splits into two parts based on a question about whether they want to contact department A or department B; both departments have fields they want to make mandatory for the user to fill in.

We have a form which hides department A requirements if department B is selected, however if there are required fields in the department A section, then the form will not submit.

So my first part of the suggestion is simple; in the 'validation' area, either make the option 'Is this field Required?' into 'Is this field Required when not hidden?', and only validate shown fields.

The next part is not required by me (yet), but I can see someone else may use this feature; allow the user to select an email based on a concept similar to 'Custom Rules' in the form; eg use when [field] is [value] [text] - as a real world example; radio_button1 is sales, radio_button2 is support - use " when radio_button is value sales", " when radio_button is value support", and be able to specify a 'default' email address for the form.

Hope that all makes sense!




18 September 2009 at 3:37pm Forum Moderator, 5511 Posts

The validation when rules are applied is one of the areas that I need to cleanup. Its a bit messy at the moment - as you have found out you can't have hidden fields required. I believe there is a ticket in the open source tracker to look into this issue. Hopefully will get it sorted for the next release.


18 September 2009 at 4:05pm Community Member, 15 Posts

Thanks Will, any idea when the next version is due for release, or whether this may get bundled into a trunk version?




18 September 2009 at 4:11pm Forum Moderator, 5511 Posts

This development, like any other features or enhancements will happen when a developer contributes a patch or has some time to implement the changes. I hate to put dates on it as they can only be wrong but its fairly high on my todo list for the module.

If anyone from the community would like to tackle the issue I would be happy to merge, test, comment on any patches submitted