cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Next/Previous Buttons Error on Nintex Form

I am wanting to add a Previous / Next Button to a Nintex Edit Form. The following code has been added to the Client Click section of the button: Next Button: window.location = "Site URL/Lists/IAMGlossaryNavSettings/EditForm.aspx?ID=" +(ID+1) Previous Button: window.location = "Site URL/Lists/IAMGlossaryNavSettings/EditForm.aspx?ID=" +(ID-1) . When clicking the Previous Button or Next Button on the form, the following error will display because a certain ID does not exist: "No item exists at... It may have been deleted or renamed by another user" Does anyone know how to get around the "No Item exits" error? Will this require additional Javascript? If so any help with the JavaScript would be appreciated.

Labels: (2)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: Next/Previous Buttons Error on Nintex Form

how can you be sure that items with ID+1 or ID-1 exist?

you would need to make a extra query/lookup (likely with a javascript) to the list to get highest existing item ID less then current one, resp. lowest existing ID greater then current one.

while you make a query, process results, prepare links, etc. the item with ID returned might be deleted and you again end up with the same error.

I don't this approach solid and reliable.

0 Kudos
Accept as Solution Reply