Hi, I've added a cred_generic_field populated by a View. This is the output of my view (I set 'Disable the wrapping DIV around the View'):
{"value": "1359", "label": "Anxiety"},{"value": "1875", "label": "Constipation"},{"value": "9634", "label": "Diarrhea"},{"value": "1361", "label": "Dizziness"},{"value": "1877", "label": "Drowsiness"},{"value": "10469", "label": "Dry Mouth"},{"value": "1878", "label": "Headache"},{"value": "10725", "label": "Heart Burn"},{"value": "10474", "label": "Heart Palpitations"},{"value": "10472", "label": "Indigestion"},{"value": "1879", "label": "Insomnia"},{"value": "1360", "label": "Nausea"},{"value": "1876", "label": "Skin Rash"},{"value": "11394", "label": "Upset Stomach"}
This is the cred_generic_field on the form:
[cred_generic_field type='checkboxes' field='item-id']
{
"required":0,
"options":[ [wpv-view name="view-checkboxes"] ]
}
[/cred_generic_field]
The form output of the cred_generic_field is blank. I've tried adding directly the JSON in this way:
[cred_generic_field type='checkboxes' field='item-id']
{
"required":0,
"options":[ {"value": "1359", "label": "Anxiety"},{"value": "1875", "label": "Constipation"},{"value": "9634", "label": "Diarrhea"},{"value": "1361", "label": "Dizziness"},{"value": "1877", "label": "Drowsiness"},{"value": "10469", "label": "Dry Mouth"},{"value": "1878", "label": "Headache"},{"value": "10725", "label": "Heart Burn"},{"value": "10474", "label": "Heart Palpitations"},{"value": "10472", "label": "Indigestion"},{"value": "1879", "label": "Insomnia"},{"value": "1360", "label": "Nausea"},{"value": "1876", "label": "Skin Rash"},{"value": "11394", "label": "Upset Stomach"} ]
}
[/cred_generic_field]
It worked fine.
For some reason the view is breaking the cred_generic_field. I've tested deactivating all the plugins, all the custom php and I switched to default theme, but I still get the problem when I use the view to populate the cred_generic_field.
Any idea?