Skip Navigation

[Waiting for user confirmation] json input into checkboxes cred_generic_field on a form

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 1 voice.

Last updated by Minesh 1 day, 10 hours ago.

Assisted by: Minesh.

Author
Posts
#2835940

Trying to create a list of checkboxes, based on users, on a form.

I have a view that creates the json, which looks like this

{"value":"","label":"Nothing"} ,{"value":"5","label":"Sophie Ellis"},{"value":"4","label":"Steve Smith"}

If I place this manually in the cred field, the checkboxes are output fine...

[cred_generic_field type='checkboxes' field='wpcf-event-hosts']
{
"required":0,
"validate_format":0,
"persist":1,
"default":[],
"options":[ {"value":"","label":"Nothing"} ,{"value":"5","label":"Sophie Ellis"},{"value":"4","label":"Steve Smith"} ]
}
[/cred_generic_field]

If I place the json view in the credfield, nothing is output

[cred_generic_field type='checkboxes' field='wpcf-event-hosts']
{
"required":0,
"validate_format":0,
"persist":1,
"default":[],
"options":[ [wpv-view name="report-z-host-list-json"] ]
}
[/cred_generic_field]

I use the same code on another website, and works fine.

#2835959

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I need to reivew your view.

Can you please share admin access details and let me check whats going wrong with your setup.

Also, please share probblem URL where you added your form.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2836081

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've checkmark the checkbox setting "Disable the wrapping DIV around the View" on your following view:
=> hidden link

I can see the checkboxes options works as expected. Can you please confirm it works at your end as well.

More info:
- https://toolset.com/documentation/legacy-features/views-plugin/view-layouts-101/#list-with-separators