Jump to:

2002 Posts in 1422 Topics by 616 members

Form Questions

SilverStripe Forums » Form Questions » Form Submission goes to Form Action

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

Page: 1
Go to End
Author Topic: 1157 Views
  • morewordsfaster
    Avatar
    Community Member
    8 Posts

    Form Submission goes to Form Action Link to this post

    Ran across a strange error when working on a page that allows a user to update an existing data object via a form. Upon clicking the "Update Event" (submit) button the "doUpdateEvent" function is not called, in fact the brower redirects to a blank page with the URL reflecting the Form action (/ss/edit-events/EditEventsForm). Any help is greatly appreciated. Code is attached

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Form Submission goes to Form Action Link to this post

    Thats correct behavior the url reflects the form name. I think your action is not being submitted due to the form being inside the if statement. Since upon submission SS can't get a form object to call the action on.

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