Skip Navigation

[Resolved] Conditions for Repeating Field Group

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 3 voices.

Last updated by Beda 6 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#920917

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.

#921133

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.

#921134

Hi,

Yes, please make this a feature request.

Thanks,
Ben

#921542

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.