Skip to main content
Nintex Community Menu Bar

Redirect to the new created item after submitting

  • August 17, 2015
  • 8 replies
  • 67 views

Forum|alt.badge.img+5

The redirect URL in the form can redirect the user to the required page but before assigning an ID to the created item, so the ItemURL has the ID = 0, is there a way to get the ID and redirect to the Display or the Edit page after creating the new item?

8 replies

Forum|alt.badge.img+16
  • August 17, 2015

Inside your form you could query the last ID used on the list, and then assume that your new item will be the read one + 1.


Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • August 17, 2015

Thank you Fernando Hunth​ for your reply, but this way you are assuming that it is a single user solution.

There is another way, which is creating another middle page and query for the last ID by Created By current user, but I want to see if there is a better way.


Forum|alt.badge.img+11
  • Scholar
  • August 17, 2015

What if the previous item was deleted Fernando Hunth​? It will show error.

Some one had asked a similar question earlier and encountered the same issue.

I dont know if this would work but you could submit the form using Javascript on the button and within this script, read the last ID created (max ID), and redirect the user (not sure how). happy.png


Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • August 17, 2015

Kapil Joshi​, how to submit the form using JavaScript? Do you men read the form values and create the item via SP.js?


Forum|alt.badge.img+11
  • Scholar
  • August 17, 2015

Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • August 17, 2015

Thank you Kapil Joshi​, but these samples are just simulating the click button event but none is returning the new item ID.


Forum|alt.badge.img+11
  • Scholar
  • November 1, 2016

Osama Mourad

Following up on this old issue. Let us know your solution and mark it as correct to help others on the community.


Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • November 1, 2016

Unfortunately the middle page is the best solution for this case.

And to solve the multiple users issue, I am checking the created by current user in the query.

So the full solution as a workaround is:

1. Set the form Redirect URL to a page with JS Webpart

2. The JS Webpart is querying the list every second with a please wait message waiting for an item created within seconds and created by current user.

3. Once the item retrieved it redirect the user to the form using the retuned item ID.