I have a form with four groups, all groups are hidden until someone picks a drop down then I am using conditional logic to show one of the groups for them to fill out.
The problem is when they go to submit the data the data present in the drop downs in the other three hidden groups are still getting inserted into my custom database.
I only want the fields that are being shown to be inserted, how can this be done?