I am very new to this and I’ve spend many hours putting together the form I want and it’s working good except one thing. I have a booking form and the radio button asks if there are 1 or 2 guests. I have two boxes that are collapsed and based on the radio button selection it then expands either 1 or 2 boxes that have the fields needed for each guest and most of the input fields within the boxes are marked as ‘required’. The problem is that if they select 1 person the box for the 2nd person stays collapsed but then the form can’t be submitted because the collapsed fields are required but not completed. Is there a way to make the fields in the 2nd box only required if it’s expanded or if radio button 2 is selected?
I’ve been searching for a solution for hours. Can someone please help me? It would be greatly appreciated!!