# How to validate groups of fields in a form

**URL:** <https://forum.kirupa.com/t/how-to-validate-groups-of-fields-in-a-form/324590>\
**Category:** flash\
**Created:** [August 29, 2011, 5:49am UTC](https://forum.kirupa.com/t/how-to-validate-groups-of-fields-in-a-form/324590 "2011-08-29T05:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lithin](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@Lithin](https://forum.kirupa.com/u/Lithin)\
**Post date:** [August 29, 2011, 5:49am UTC](https://forum.kirupa.com/t/how-to-validate-groups-of-fields-in-a-form/324590/1 "2011-08-29T05:49:02Z")

</div>

Hiya.

Ive made a regular submit form with regular validation and a email validation.  
Now i need to validate groups of fields.  
I got 10 rows of 4 columns. I got the columns date, to, from and time.

I wanna validate it so if you write something in to, it will require you to fill out date, from and time aswell. If you don’t write anything in them i want them to be able to be blank.

Ive tried to search and ive yet to find a solution.

Please help 🙂
