I'd like to dynamically create field groups to be shown dependant on user selection in a select field, when user is adding a custom post type.
Select field has several options - for each option selected a field group is generated named the same as the selected item. Each field group that is dynamically generated has identical input fields.
I know that I could use conditional logic to show the groups, but ideally I want the groups to be dynamically created so if the select options change I don't need to create more groups.
Is this possible?