Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Userfoms - required field and hidden field

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 654 Views
  • Craftnet
    Avatar
    Community Member
    58 Posts

    Userfoms - required field and hidden field Link to this post

    Hi,
    I made ​​an order form.
    At the beginning the customer gives his address and choose whether it is a company or a private person.
    If he choose company then display the additional fields that are required, as is the case with the private person.

    My problem is that, and here and here are the required fields.
    How do validation to check for only the fields that are not hidden?

    The idea is that when you fill in all fields for example: as a company is not sending the form because hidden fields also require validation

    Sorry for my bad English

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Userfoms - required field and hidden field Link to this post

    Yes this is a known defect and on the list to fix for 1.0. At the moment you cannot require hidden fields. There is a fix for it on the github profile page (under issues) but this is untested and hasn't make it into the module yet.

  • Craftnet
    Avatar
    Community Member
    58 Posts

    Re: Userfoms - required field and hidden field Link to this post

    Thank you for your response.
    In that case, wait for the next edition of the improved error

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