2 separate forms both with Conditional fields on same page
-
I am trying to flip a complex form with conditional fields for responsiveness.
i.e. I have 2 forms a) for PC/Laptop etc and b) smartphones.The widescreen version has very complex CSS the smartphone is just 1 long column
So I did the old display:none; / display:block; trick with my @media to flip the formsThe 1st form stopped showing the conditional fields -they are triggered by a check box and they show perfectly when the form is alone. But when the hidden div is added with 2nd form that also has conditional fields. The 1st guy just won’t show the conditional fields.
I thought it was the complexity or same slugs by cloning so I created a test page :
This is easily re-creatable – just have 2 simple separated forms both with conditional fields 1 above the other or side by side the 1st conditional form will stop working. Flip them around and its always the 1st guyI got round it by removing all conditional fields from the mobile version and if the 2nd form has no conditional elements it works fine. It only happens when 2 forms with conditional fields are on the same page
So its a strange issue so I tried it without any plugins (except the essential theme plugin and the slider plugin )
- The topic ‘2 separate forms both with Conditional fields on same page’ is closed to new replies.