Ok I am going to try this again, I need to get the information from the field answer_ docQuestion.UniversalID , I have created an agent to run on the submit of the form but that does not get ran and I am not sure how to get the values from the field so that I can check them against the correct answers.
agent that creates the questions :
If sQuestionInputType = "MC" Then ' multiple choice
Forall answers In vQuestionKeyword
‘ Call rtQuestionBody.appendText({<input type="} & "radio" & {"name="answer}& Cstr(j) & {"value=} &answers & {>})
Call rtQuestionBody.appendText({<input type="} & "radio" & {" name="answer_} & docQuestion.UniversalID & {" value=} & answers & {>})
Call rtQuestionBody.appendText(answers)
Call rtQuestionBody.AppendText({<br>})
End Forall
Else ' radio button
Call rtQuestionbody.appendText({<table width="150" border="0" cellpadding=0 cellspacing=0><tr><td> </td>})
Forall options In vMatOption
Call rtQuestionBody.AppendText({<td>})
Call rtQuestionBody.appendText(options)
Call rtQuestionBody.AppendText({</td>})
‘ Call rtQuestionBody.AppendText({<td><input type="radio" name="answer} &Cstr(j) & {"value=} & options & {></td>})
Call rtQuestionBody.appendText({<td><input type="} & "radio" & {" name="answer_} & docQuestion.UniversalID & {" value=} & options & {></td>})
End Forall
agent that is ran on submit:
Dim s As NotesSession
Dim context As NotesDocument
Dim thisDb As NotesDatabase
Dim requestContent As String
Dim answerArray As Variant
Set s = New NotesSession
Set context = s.DocumentContext
Set thisDb = s.CurrentDatabase
requestContent = context.GetItemValue("Request_Content")(0)
answerArray = Split(requestContent, "&")
docMain.UserAnwsers = context.GetItemValue("Request_Content")(0)
thanks
p.