Nigel
Supporter
Les langues:
Anglais (English )
Espagnol (Español )
Fuseau horaire:
Europe/London (GMT+00:00)
Hmm.
When using a View to create a select field in a form in this way I have found it to be very sensitive to whitespace that the View outputs (even when you disable the wrapper div and eliminate whitespace from the Loop Editor) but found it works when using the Loop Wizard and choosing the List with separators output format.
Could you try the same?
Edit the View and use the Loop Wizard. You'll need to insert any field as a placeholder, then replace it in the generated markup with
{"value": "[wpv-user field='ID']", "label": "[wpv-user field='display_name']"}
I think copying the whole block I posted above may have affected the whitespace.
If that does turn out to be the problem I'll need to speak to the developers about improving the output of a clean View so that whitespace isn't a problem, because it shouldn't be so over-sensitive.
HI NIgel I am still not having any success. I have tried as you suggested and tried to remove all white spaces but no luck yet.
Nigel
Supporter
Les langues:
Anglais (English )
Espagnol (Español )
Fuseau horaire:
Europe/London (GMT+00:00)
Sorry to have to ask again but I no longer seem to have access to the site, if this is the same one.
Can I get credentials from you to take a look?
Nigel
Supporter
Les langues:
Anglais (English )
Espagnol (Español )
Fuseau horaire:
Europe/London (GMT+00:00)
Your View didn't have the wrapper div disabled, which I've now done and the form includes the selector to change author.
May not be your fault, we had an issue with saving that setting in the previous version of Views.