Skip Navigation

[Resolved] Conditionnal display filter form

This support ticket is created 3 years, 8 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by stephaneB-5 3 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#2022065

Hello,
I am developing a page with a sorting system and I would like to set up display conditions according to the values selected by the user.
Indeed, if the user chooses "Flowerbeds or beds", the question "IN WHICH AGE ARE YOU SITUATED?" will be displayed directly.
Is this possible with your conditions?
If not, how do you do it?

thank you in advance

#2022143

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stephane,

Thank you for getting in touch.
I am developing a page with a sorting system and I would like to set up display conditions according to the values selected by the user.

Based on this i'm assuming that you are referring to a view/block here with frontend filters. Correct me if i'm wrong.

Indeed, if the user chooses "Flowerbeds or beds", the question "IN WHICH AGE ARE YOU SITUATED?" will be displayed directly.

So if this is a view then no this won't be possible to do natively with our conditional code, you can however achieve this by using a little bit of Javascript to check what value the user selects from your option and then display the "IN WHICH AGE ARE YOU SITUATED?" field.

Take a look at this example in the link below. This should give you an idea of how to hide/display the fields using Javascript.
https://stackoverflow.com/questions/26252272/show-hide-form-fields-based-on-a-selection-from-a-drop-down-menu

Please let me know if this helps or if further clarification is needed.
Thanks,
Shane

#2022237

My issue is resolved now. Thank you!