Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Suggestion for Userforms 0.2

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 768 Views
  • RichardMortimer
    Avatar
    Community Member
    15 Posts

    Suggestion for Userforms 0.2 Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Suggestion for Userforms 0.2 Link to this post

    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.

  • RichardMortimer
    Avatar
    Community Member
    15 Posts

    Re: Suggestion for Userforms 0.2 Link to this post

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

    Cheers

    Richard

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Suggestion for Userforms 0.2 Link to this post

    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

    768 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.