Tell us what you are trying to do?
I am attempting to use conditional fields within the Toolset Form Builder to dynamically display certain fields based on the value of another field, specifically "campana-plantilla-id". The expectation is for these fields to only show if "campana-plantilla-id" equals "56".
Is there any documentation that you are following?
Yes, I have been following the Toolset documentation on conditional fields and form building, particularly the sections that discuss setting up conditional logic for form fields. Despite adhering to the guidelines provided, the expected behavior isn't achieved.
Is there a similar example that we can see?
I do not have a specific example from the Toolset documentation that exactly matches my use case, but I have based my setup on the general principles outlined in your guide on conditional display logic for form fields.
What is the link to your site?
hidden link
Additional Information:
Despite ensuring that the "campana-plantilla-id" field contains the value "56" and setting up the conditional logic as per documentation, the fields intended to be conditionally displayed are not appearing. I have tried various troubleshooting steps, including clearing cache, disabling other plugins to check for conflicts, and verifying the field values and conditions. None of these steps have resolved the issue.
Could you please assist me in identifying what might be causing this issue and suggest a solution? Your guidance on any additional steps I could take to resolve this would be greatly appreciated.
Thank you for your support.
Hi,
Thank you for contacting us and I'd be happy to assist.
I checked the link, but couldn't find any form in there. Can you please share temporary admin login details, along with the link to the page where this form can be seen?
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
regards,
Waqar
I tried to access the admin area, but keep getting the incorrect username message.
Can you please check the username and password again?
(I've set your next reply as private)
The new access details worked, thank you.
I changed the 'Test Vida 2' post's author to the test user that you provided me, to see the edit form 'Campaña Personalizada Edición'.
The conditional group in this case was not working, because the field 'Campaña plantilla ID' (slug: campana-plantilla-id), was not included in the form.
The conditional groups only work with the fields, which are included in the form.
I included this field and the conditional group is working now.
( screenshot: hidden link )
To hide this field from showing on the front end, I've also included this CSS code in the form's CSS editor:
.form-group label[for*='campana-plantilla-id'],
.form-group div[data-item_name*='campana-plantilla-id'] {
display: none;
}
The field is now coming as part of the form, for the conditional group, but it is not showing to users.