Skip to main content
Nintex Community Menu Bar

JavaScript button to save a new form and then open the item in another content type but in edit form

  • August 3, 2020
  • 0 replies
  • 20 views

Forum|alt.badge.img+4

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?