Web validation before opening a form

Hi All,

I have a notes database that is used by the users to take exam and store there score in it.

If a person takes an exam and his score >=24 then he is not allowed to take another exam. There is an agent for it that validates this condition by checking the user name and how much he has scored, then pop up box will display his score and restrict him from taking the exam again.

If his score is less than 24 then he can take the exam again till he scores >=24.

Now I want the same functionality in Web also. We have a web form for it and we have a link that once clicked open the web form for the user to take exam.

Now I want to have the same functionality in web also, that is it should check his score and then decide that he should take the exam or not.

Please guide me to achieve this.

Thanks

Ravi

Subject: Web validation before opening a form

Use a WebQueryOpen agent to find out if they should take the exam or not. Then write to a field on the form, maybe call it “Continue” or something - “y” if they can take the exam and “n” if they cannot. Then use Javascript in the head of the form to check the value of the field. If “n” then use Javascript to redirect the browser to another page, if “y” then continue opening the form and let them take the exam.

Hope this helps

Pete

Subject: Web validation before opening a form

Hi Ravi, Use javascript in your ‘onload’ event and you can popup a message in a webpage.

Thanks;

John Cruz