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


Reply


4 Posts   860 Views

Avatar
RichardMortimer

Community Member, 15 Posts

18 September 2009 at 12:45pm

Hi,

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 "sales@test.com when radio_button is value sales", "support@test.com when radio_button is value support", and be able to specify a 'default' email address for the form.

Hope that all makes sense!

Thanks

Richard

Avatar
Willr

Forum Moderator, 5513 Posts

18 September 2009 at 3:37pm

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.

Avatar
RichardMortimer

Community Member, 15 Posts

18 September 2009 at 4:05pm

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

Cheers

Richard

Avatar
Willr

Forum Moderator, 5513 Posts

18 September 2009 at 4:11pm

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