Script to go to next open item in a list

  • 23 February 2022
  • 0 replies
  • 19 views

Badge +1

I have a button on a form that takes you to the next item on a list. I know the script to go to the next item in a list is :

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

 

However, the need is to go to the next "open" item on the list based on a status kept in a column. (i.e. skipping over any that are marked "Closed")  How can this be accomplished? 

 

Any help appreciated


0 replies

Be the first to reply!

Reply