Before a user submits a form, I would like to validate one of their entries against a ValueList variable that was created when the page was opened.
I want to prevent a user from entering a duplicate asset number and right now the form is submitted and the verification is done on the server. If the asset number exists they are sent back to the form, however all the form fields are empty and they have to start over.
The database has more than 5000 assets so the ValueList variable is quite large. I'm not sure how to get it into JavaScript or how to manipulate it once there. The ListFind function is perfect but since that's server side it won't work.
Any ideas?
I want to prevent a user from entering a duplicate asset number and right now the form is submitted and the verification is done on the server. If the asset number exists they are sent back to the form, however all the form fields are empty and they have to start over.
The database has more than 5000 assets so the ValueList variable is quite large. I'm not sure how to get it into JavaScript or how to manipulate it once there. The ListFind function is perfect but since that's server side it won't work.
Any ideas?