Support

Account

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.