SharePoint Designer Gotcha: Where's the "action" in my Form Action button?
It seemed simple enough.
I built a custom New Item form. Naturally, it needed to redirect to another page after completion. Normally for a "return page" function, a "Source" parameter in the querystring will suffice, but that didn't seem to work here. I found the Form Action Button (under Insert->SharePoint Controls->More SharePoint Controls), added Commit and Redirect actions, told it what page to use, and presto!
Nothing happened.
In fact, it didn't even try to submit the form.
A look at the markup revealed that the "Form Action Button" was just a regular old input type="button". SharePoint Designer was supposed to add an event handler with a JavaScript call, but there appears to be a bug in Designer. Apparently if there is another HTML button nearby, the event handler can end up there instead! I've included the code so you know what to look for if this ever happens to you:
onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={Thanks.aspx}')}"
Your actions may be slightly different, but that's the basic idea. All you need to do is to cut/paste this bit into your *actual* button -- or any other control, really -- and you'll have the behavior you expected in the first place.
Whew.