Hey there, small issue with populating a Generic CRED field with JSON output for a view.
(could be related to this? https://toolset.com/errata/using-a-view-with-json-output-to-populate-generic-select-field-in-a-form-not-working/ )
This was working fine and then just stopped.
CRED Form:
[cred_generic_field type='multiselect' field='article-tags' class="article-tagging"]
{
"required":1,
"default":[],
"options":[[wpv-view name='article-tags-options' cached='off']]
}
[/cred_generic_field]
View: (div wraping disabled)
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>[wpv-item index=1]{"value":"[wpv-taxonomy-slug]","label":"[wpv-taxonomy-title output="sanitize"]"}[wpv-item index=other],{"value":"[wpv-taxonomy-slug]","label":"[wpv-taxonomy-title output="sanitize"]"}</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
---
If you output the views json directly and then copy paste it in to the field it works just fine.
Here is a (shortend) view oputput whne placed directly on the form page to examine the output.
{“value”:”team-building”,”label”:”Team Building”},{“value”:”themes”,”label”:”Themes”},{“value”:”tinciture”,”label”:”Tinciture”},{“value”:”to-do-com”,”label”:”To Do com”},{“value”:”tools”,”label”:”Tools”},{“value”:”toolset”,”label”:”Toolset”},{“value”:”validation”,”label”:”Validation”},{“value”:”video”,”label”:”Video”},{“value”:”video-recording”,”label”:”Video Recording”},{“value”:”webcam”,”label”:”Webcam”},{“value”:”webinar”,”label”:”Webinar”},{“value”:”wordpress”,”label”:”Wordpress”},{“value”:”youtube”,”label”:”YouTube”}
not sure whats going on, I am using Blocks, and not legacy Views.