Checkbox field mapping
Map WordPress ACF checkbox fields to choice fields in Optimizely CMP for seamless integration and content management.
Optimizely Content Marketing Platform (CMP) supports mapping the ACF Checkbox field to the structured content Choice type field.
JSON example
{
"core": {
"key": "acf_checkbox_field",
"name": "ACF Checkbox Field",
"is_list": false,
"is_required": false,
"need_internationalization": false,
"min_list_length": 1,
"max_list_length": -1,
"field_type": "choice",
"source_id": null,
"source_metadata": "{\"is_custom_post_type_field\": true}", // It is important to identify source_metadata as custom field
"order_index": 0,
"help_text": null,
"editor_metadata": null
},
"choices": {
"A": "A",
"B": "B",
"C": "C"
},
"display_option": "checkbox",
"default_values": ["A"]
}Updated 1 day ago