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

Next and Previous buttons that save and go to next/previous record

I would like to know how to create a next and previous button that saves and move to the next or previous records in the list.  I have the previous and next buttons working, I just cant get it to save the record.

Labels: (2)
Reply
3 Replies
Workflow Hero

Re: Next and Previous buttons that save and go to next/previous record

Are you customizing the display or edit form?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Next and Previous buttons that save and go to next/previous record

Editing the form

Accept as Solution Reply
Workflow Hero

Re: Next and Previous buttons that save and go to next/previous record

Here is my current code that is in the Custom JavaScript of the Form

function saveNext() {NWF$("input[value='Save']").click(); window.location = "Site URL/Lists/List Name/EditForm.aspx?ID="+ (ID+1)};

function savePrevious() {NWF$("input[value='Save']").click(); window.location = "Site URL/Lists/List Name/EditForm.aspx?ID="+ (ID-1)};

0 Kudos
Accept as Solution Reply