I am trying to save a default content new form and then send the user to another content type form for the same item but in edit form. I am using JavaScript to send the user to another content type form by clicking on a button with this script:
setTimeout(function() {
window.location = "http://ServerName/Lists/ListName/EditForm.aspx?ID=" + itemID + "&ContentTypeId=" + ConTypeID;
}, 500);
This works if the item's ID has been set, but when it is clicked, the ID isn't set and link breaks. Is there a way use the "Save and Continue" button functionality and then immediately send the user to the URL above with an ID ready to be used?