I have an edit form that I need to have commit data and then open another edit form with the same ID in a dialog. Previously I did not have to save data so I used
onclick="javascript: OpenPopUpPage('EditForm2URL.aspx?ID={@ID}');"
Since I now have to save and then open the dialog I'm trying to use....
onclick="javascript: {ddwrt:GenFireServerEvent('__commit')};OpenPopUpPage('EditForm2URL.aspx?ID={@ID}');"
When I do this the page saves then opens the dialog but refreshes and kicks the user out of the dialog before they can use it. Any way around this?