I need to find out if user passes a test or not right away when he/she submit the test.
I have a field on the form that has the answer fieldAnswers = a;d;e;b;c;a;e;
and a field usersAnswer that is not filled yet has she/he is answering the quiz.
Here is the code I have in the WebQuerySave event… it is not working. I am not sure if the doc is the web current documeent
how can I make this work?
Dim session As NotesSession
Set session = New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext
PageNumber = doc.GetItemValue(NumberOfQuestions)
Forall i In NumberOfQuestions
If doc.fieldAnswers(i) = doc.usersAnswer(i) Then
matchs = matchs + 1
Messagebox matchs
doc.matchs = matchs
End If
End Forall
Subject: RE: WebQuerySave event not working for me.
Try to add quotes around NumberOFQuestions in the getitemvalue and PageNumber to the for statement instead of NumberOfQuestions. For web agents it is much easier to debug with Agent logs.