I have a repeating field group which is only relevant based on the value of another custom field in the post.
I want to use the conditions to only enable the repeating field group when the value of the other custom field is correct.
E.g. A checkbox which when checked enables the repeating field group
I can set the conditions on the fields in the group and that works fine, but to make the site easier to use I'd like to hide the repeating field group entirely based on conditions. If you set the conditions on the fields in the group, you can still create new group entries, they're just empty with no fields displayed, which is not ideal and could be confusing for the user.
Hello,
Unfortunately, the Post Fields Conditional Display does not work for the Repeating Field Group, there isn't such a built-in feature within Types plugin, if you agree, we can change this thread as a feature request, our developers will evaluate it.
Hi,
Yes, please make this a feature request.
Thanks,
Ben
I filed the request, however wanted to share a simple workaround for now:
- Create a Field Group A
- Create a Field Group B
- Insert the Checkbox there
- Go back to the Field Group A and set the entire Group do display only if the Checkbox of Group B is xy
- Assign this Group A to a Post Type
- Insert the Repeating Field Group to Group A
==> The specific workflow above is because you cannot edit the Conditions of Group A (where the repeating field group is) after you add a Repeating Field Group.
That is as well already filed to be changed.