I have a sharepoint list with two columns, one with one time codes and the other one is yes/no
Like this:
CODE | USED |
---|---|
NGTHX–EVLRZ–GHTXD | Yes |
RYKXB–EOMWD–FZUWL | No |
DKTUN–YSCWP–PHKWM | No |
So what I'm trying to achieve is with javascript/jquery have a page where you could click a button and receive the next available code in the list and mark that code's used column to Yes. So next time you click the button you get the next code which aren't marked as used. This is for a internal service and a user can request a code themselves instead of contacting an administrator.