I have a custom newform that I am trying to pass its Just created ID using the save button actions.
I have tried:
<input type="button" value="Save" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/Lists/cl/editform.aspx?ID=@ID}}')}" />
But I am not getting the ID value, I only get ID on the url. I have seen posts that can pass id from dispForm, but I need to get the currently created ID. Any ideas? Thank you