I have a Form I am creating in SharePoint Designer 2007. My form has varying required fields that are dependent on the value of specific fields. For example field 1 has a value of 'A' then field 2 is required and Field 3 is optional. If field 1 has a value of 'B' then Field 2 is optional and Field 3 is required. I have a function that controls the visibility of a div with an '*' to indicate that the field is required. If the required field contains data, then I want the '*' to be hidden. This function currently works for only one field. I need to change this function to look at my entire form and validate all required fields.
The form is laid in three column table(s) as:
Label SharePoint:FormField Div '*'
Any help is appreciated.