I am trying to validate that the user has selected one of a radio button group.
The radio button(s) may or may not be there - they’re created in a repeat control - so it’s difficult to add client-side script to the Submit button.
I tried attaching a required validator via script (XSP.attachValidator), but it throws an error.
If I add a required validator via the Properties panel, I can define the message, but that message never gets displayed to the user, just “Validation error: Value is required”.
I can’t add client-side validation to an event on the radio group, because it would not get triggered if it’s not clicked.
I thought of adding code to the querySaveDocument event of the DominoDocument data source, but I can’t find anything on the web for how to generate an error and prevent submission of the whole XPage.
If anyone knows how to do an equivalent of continue=false in querySaveDocument, or can think of a different or better way to do this,I would really appreciate it.