I am trying to use a View to populate a CRED generic "select" field.
I tested the view on a page and it returns the posts as it should but I don't get nothing in the form.
The field is completely ignored in front end, nothing ...
Added this to the Cred form
[cred_generic_field field='ytor' type='select' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"default":[],
"options":[[wpv-view name="spaces-select"]]
}
[/cred_generic_field]
This is my View:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
{"value":"[wpv-post-id]","label":"[wpv-post-title]"},
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
This is what I get if I add the View to a Page, so the View it self is working.
<div id="wpv-view-layout-5122-TCPID5123" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-5122-TCPID5123" data-viewnumber="5122-TCPID5123" data-pagination="{"id":"5122","base_permalink":"/?page_id=5123&preview=true&wpv_view_count=5122-TCPID5123&wpv_paged=WPV_PAGE_NUM","query":"normal","type":"disabled","effect":"fade","duration":500,"speed":5,"stop_rollover":"false","cache_pages":"enabled","preload_images":"enabled","preload_pages":"enabled","preload_reach":1,"spinner":"builtin","spinner_image":"<em><u>hidden link</u></em>","callback_next":"","manage_history":"enabled","has_controls_in_form":"disabled","infinite_tolerance":"0","max_pages":0,"page":1,"loop":{"type":"","name":"","data":[],"id":0}}" data-permalink="/?page_id=5123&preview=true&wpv_view_count=5122-TCPID5123">
{"value":"315","label":"A:12"},
{"value":"316","label":"A:18"},
{"value":"314","label":"B:01"},
{"value":"313","label":"B:11"},
{"value":"312","label":"C:01"},
{"value":"300","label":"C:03"},
{"value":"298","label":"C:16"},
{"value":"800","label":"D:12"},
</div>