advancedforms / advanced-forms

WordPress plugin to create forms using Advanced Custom Fields
75 stars 14 forks source link

Add support for tabs inside of multi stage forms #108

Open mishterk opened 2 years ago

mishterk commented 2 years ago

When using tabs to organise fields inside a multi stage form, the tabs aren't hidden/shown depending on the form page. Instead, the tabs all appear at the bottom of the form. Interestingly, the tabs retain their functionality — i.e; when on the correct page, the field visibility will change when tabs are use — they just aren't hidden when on a page that doesn't have the tabs.

I took a look at the JS and the logic is really controlling visibility of elements with class .acf-field. This doesn't factor in tabs because they have a class .acf-tab-wrap.

mishterk commented 2 years ago

Did a little testing on this front and found a way but needs some further testing and refinement. Stashed locally under 'Tab support'. Will look into this for 1.10.1.