Sometimes you may want to combine multiple fields into a logical group and validate them together. For example, you may create a group of three fields including address, city and state to show or hide the fields together and in some cases align them horizontally on the same line. An unexpected result of doing this is that the error icon for each field overlaps the next field. In order to avoid this, you can set the validate as group property so that the child elements are validated "as a group". As a result, the error icon is shown after the last field in the group and all fields in the group must pass validation before the group is considered valid.
To validate a group of fields together:
In the Group General Setting panel, set the Validate As Group property to true.
Insert the form elements into the group.
For each of the elements, set the Required property to true, and/or choose a method in the Validation property.
Save and test the validation by clicking the Submit button.
The error icon will be placed after the last field in the group and the error messages combined.