Still need help...
The cursor (and the form to which the validation is supposed to be applied) is in an editable region. I am now getting the following message: "You have made changes to code that is not marked as editable. If you retain those changes, they will be lost the next time you apply a template update to this file, Do you want to retain the changes until then?"
That will be a problem (if true) in the future when I change the template (as I will need to do).
Also, in testing the form I notice that if one of the validations does not pass the whole form comes back blank (to start all over again). Is there a way to preserve the valid data so the user doesn't have to start all over again?