Skip Navigation

[Resolved] Conditional field display on front end Form

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to show and hide content based on Form field selections.

Solution: Use conditional groups to show and hide content in a Form based on field selections.

Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/

This support ticket is created 6 years, 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#918263

Hi

I created a radio field is "boss or company id", an input field is "boss id", an input field is "company id".

When I add a data in the frontend form, the "boss or company id" radio field:
selected value=1 --> then display "boss id" on front-end form, hide "company id" .
selected value=2 --> then display "company id" on front-end form, hide "boss id" .

How can I do it? Thank you.

#918352

You can use conditional groups in a Form by clicking "Add Generic Field", then "Conditional Group". We have a guide available here: https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/