Home › Forums › ACF PRO › Re-order of collapsed rows in the repeater field shuffles text › Reply To: Re-order of collapsed rows in the repeater field shuffles text
It is not the collapsing of the repeaters that is causing this, it is the conditional logic that is hiding the fields.
There isn’t any way to avoid this when using ACF’s conditional logic for sub fields in a repeater. The reason for this is that fields hidden by conditional logic are not submitted because the inputs are marked as “disabled” when hidden.
This topic has been covered many times here. Here is one example.
The easiest solution is to not use conditional logic for sub fields of repeaters. Is there any reason to hide the values other than not looking at them?
Another more complicated solution is to write your own JavaScript code that hides/shows the fields based on the the value of the true/false field.
There is a very old topic were Elliot (the original developer) provided code to alter the way ACF works. However, I have no idea if this still works as it was written for ACF version 4 and ACF has changed a lot since then. Given this there is probably a way to do this in the current version of ACF, but I do not know details of how that could be done.
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.