Home › Forums › ACF PRO › Get Relationship for Tab and Title › Reply To: Get Relationship for Tab and Title
That is all done with JavaScript. In ACF Pro if you look in the file /plugins/advanced-custom-fields-pro/assets/js/acf-input.js there is a function starting on about line 7164.
Basically, from what I understand it looks for a tab field and then looks for the next tab field, checking for end points along the way, and hides or shows fields based on that. It adds several classes to the fields so it knows where the first field in the tab is and where, etc. The hiding and showing is all done by adding or removing these classed from the field wrappers.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.