Jump to:

1976 Posts in 1306 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » Form not saving valid fields if there are invalid fields

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

Page: 1
Go to End
Author Topic: 1106 Views
  • danzzz
    Avatar
    Community Member
    175 Posts

    Form not saving valid fields if there are invalid fields Link to this post

    hi,

    wondering if anybody else had this problem, or see's this also as a problem. I decorated Member with some fields. I have fields which are required and some wich are not.

    On my SS site users can register, just with email and password. There is no need to fill out Names or other fields when sign up. Users can do this later on their profile form.

    So let's say you log in to my SS site the first time and open the EditProfilePage. You see this form:

    Salutation (DropdownField, Required)
    FirstName (Required)
    Surname (Required)
    Email (Required, EmailField)
    Telephone (not required)

    Only the Email field ist not empty until now. You start to complete the form. You fill out every field but you forget the Salutation Field and you save the form. You did 1 failure, but the other values where correct.

    But SS dont saved the correct values because there where a failure. The user again must fill out the whole form.

    How it's possible that SS save's correct values to DB, even if there where some errors on the form?

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