View Full Version : Validation on a form - if one field is complete then others must be

05-30-2006, 12:31 PM
Good morning all,

I have a bit of a poser that I am looking for some comments on.

I have a dynamic form for Product Returns, the customer chooses how many products they have to return and the form displays different lengths of the form in relation to their choice.

At the moment I just have some simple validation on the form, however I need to beef this up and want to know the best way to do this.

For each product return a customer must complete a few fields, including reasons for return. What I need is a validation script that looks at the first field -Product Code - and if this is completed then all other fields within that product row must be completed.

I cannot do it on all the seprate fields as the customer may choose 2-5 products for return, and only need to complete 3 rows.

Any suggestions?