I'm working on an events management system. Within this post type, I have a toolset radio field with three options:
• Show start and end times
• Show start time only
• Use custom schedule
If a user selects "Use custom schedule" I would like to display a repeatable field group for schedule items. If any other option is selected it should be hidden.
I'm able to conditionally display the actual fields within the repeatable group, but an empty group container still appears on the back end. Is there a way to show or hide an entire repeatable group based on another field value?
Hi there,
It is not possible to connect the Conditional display to the Repeatable Field Group.
It is possible to connect it to the individual fields inside the group.
That is why you will see the Group option itself available all the time, but the fields inside will not show until the correct radio option is checked.
As the customer can not add any fields inside the group if the correct option is not selected, the main group addition (the name of the group) will not have any effect and it is just a visual thing.
Thanks.
Thanks Christopher... but there is a caveat. If a user chooses "Use custom schedule" and completes the fields, and then later chooses another option, the red trash can icons still appear in the repeating field group, and it generates a system error. There is no way to recover from the error other than reloading the page. See video: hidden link
Hi there,
Thank you for reporting this usability issue. For now, let's keep that reloading workaround as it is a rare use case.
I am going to report this to the development team.
Thanks.
Hi there,
The development team mentioned that the error message that pops up, it tells you that you need to reload the page.
I understand that is not the best way to go forward and there is room for improvement but as the message is there, the client will know that he needs to reload the page.
Thanks.
My issue is resolved now. Thank you!