Skip Navigation

[Resolved] Cred Form generic Field with options from taxonomy view

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by Rolf 4 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1796323

To select a category I want to insert a taxonomy query as checkbox selection in the Cred Form.

[cred_generic_field type='checkboxes' field=test]
{
"options": [ [wpv-view name='lista-sub-categorias']]
}
[/cred_generic_field]

In the View

<wpv-loop>
{"value": "[wpv-taxonomy-id]", "label": "[wpv-taxonomy-title]"},
</wpv-loop>

Result:
The view output appears instead of the form field

{«value»: «52«, «label»: «Salud - Belleza«}, {«value»: «88«, «label»: «Proyector«},

#1796489

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

We have another report where using a View to dynamically generate the options for a form generic field is not working, which appears to have occurred with the latest updates.

I can't see which versions you are using. If you have updated to the latest versions could you try downgrading both Forms (to 2.5.8) and Views (to 3.2.2), which you can get from the changelogs on the downloads page (Views in the legacy tab): toolset.com/account/downloads

Can you confirm that it then works?

If so, you have set it up correctly, and the problem is with the updates.

Please let me know so I can see how to proceed.

#1796997

Thanks for the information. Enclosed the missing system info:
Wordpress 5.5.1
Theme Astra Version: 2.5.5
Toolset Access Version 2.8.7
Toolset Forms Version 2.6.1
Toolset Forms Commerce Version 1.8.1
Toolset Layouts Version 2.6.5
Toolset Maps Version 2.0.3
Toolset Module Manager Version 1.8.6
Toolset Types Version 3.4.1
Toolset Views Version 3.3.1

I have disabled all plugins except Toolset and tested with the theme Twenty Seventeen. After that I tested under the configuration with the versions Forms 2.5.8 and Views 3.2.2. and always get the same result. Since the original base was the reference site "Classic Car" I tested on that page. With the same result:
hidden link

What am I doing wrong?

#1797833

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

The developers have produced a fix for this which will be included in the next release, but in the meantime a patch is available here: https://toolset.com/errata/using-a-view-with-json-output-to-populate-generic-select-field-in-a-form-not-working/

Could you try that and let me know that it works?

#1800027

Hello, Nigel,
thanks for the patch. The patch does not work. I will do a workaround to solve the problem