Setting Up a Repeater Field for CPT
Create the Repeater Field:
In the form, ensure the names of Repeater field and fields inside the repeater in your form match the names of the metafields in your Custom Post Type (CPT) exactly. This is essential for the form to recognize and save data correctly.Post Submit Action:
Verify that each field in your form matches the field names in the CPT for proper data mapping.
If it's edit post form, don't forget to set up Preset. All form fields should be mapped to their metafields
Setting Up a Repeater Field for CCT
Field Name Matching:
First, ensure the names of the repeater field and its subfields in the form match the metafield names in your Custom Content Type (CCT).
Configure Field Mapping in action:
Preset settings:
If it's edit CCT form, you will also need to set up Preset. Make sure all fields are attached to the same Repeater metafield.
By following these steps and ensuring all field names are consistent, you’ll successfully set up a repeater field for CPT or CCT forms in Crocoblock.