How to validate groups of fields in a form

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 :slight_smile: