Jump to:

2011 Posts in 1436 Topics by 620 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: 1173 Views
  • morewordsfaster
    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
    Forum Moderator
    5508 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.

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.