I have a button that calls a Prompt. There is a field on the form I want filled in with the result from that prompt and it is not working. What am I missing? Here is the code:Sub Click(Source As Button)
Dim w As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim response As Variant
Dim values(5) As Variant
values(0) = "SS Mileage"
values(1) = "Other Mileage"
values(2) = "Lunch"
values(3) = "HW/SW"
values(4) = "Parking"
values(5) = "Miscellaneous"
response = w.Prompt (PROMPT_OKCANCELLIST, "Select an Expense Type", "Select an Expense Type.", values(0), values)
If Isempty (response) Then
Messagebox "User canceled", , "Expense not added"
Else
Set uidoc = w.CurrentDocument
Call uidoc.FieldSetText("FieldValue0", response)
End If
End Sub