[Gelöst] Conditional display based on a generic radio field
This support ticket is created vor 4 Jahren, 10 Monaten. 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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
I'm using a Cred form and have created a Cred generic radio field (type-adhesion) in order to define a type of subscription.
This field is used to define the associated product that would be charged with WC. Until then, everything works fine.
Now, I need to add a conditional display for additional fields depending of the choice made thanks to the (type-adhesion) field.
I'm not able to make it work like this (it is working fine with a standard radio field but not with a generic radio field).
Is there a way to use the generic radio filed choice as a parameter for the conditional display?
Nigel has a day off today, so I'll be following up on this ticket.
I copied the exact generic field and the conditional group code from your message and tested it in a form on my test website and it worked as expected.
Can you please share temporary admin login details along with the link to the form's page on your website, so that I can troubleshoot this in more detail?
Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.
The code in your form seems to be correct and it works as expected as it is on my website too, which suggests the issue is something specific to your website.
I'll recommend testing the form with all non-Toolset plugins disabled and with a default theme like Twenty Twenty.
If the issue is fixed, you can start adding the disabled items, one-by-one, to narrow down to a possible conflict.
In case the issue still persists, I'll need a clone/snapshot of your website so that it can be tested on a different server.
Hi Waqar,
Thanks for your time.
I have checked and found that there was already a condition inside the custom fields. So, I remove it to let only the group condition in the form but this changed nothing !
So, I came back to the standard form field (no generic) and the condition works fine.