This is in Sharepoint 2007 -- Designer
I have written a Form Action button and it has the following Code:
<input type="button" value="Add List Item" name="BtnSave" onlick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect{../../site/newItemAdded.aspx}')}" />
I've seen this solution a couple times on the web but doing this does not redirect the user at all. It does hit the __commit portion and saves the new list item, but it just posts itself back to the main form and does not redirect.
Any guidance would be great on how to get it to redirect correctly. I have written the above button by hand and by using the Form Action Button in Designer, neither with successful results.