Radio Button field mapping
Map WordPress ACF radio button fields to choice fields in Optimizely CMP for seamless integration and content management.
Optimizely Content Marketing Platform (CMP) supports mapping the ACF Radio Button field to the structured content Choice type field.
JSON example
{
"core": {
"key": "acf_radio_button_field",
"name": "ACF Radio Button 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": "radio",
"default_values": ["A"]
}Updated 2 days ago