Skip Navigation

[Gelöst] Display field conditionally

This support ticket is created vor 7 Jahren, 6 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.

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)

Dieses Thema enthält 11 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 7 Jahren, 6 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#517337

Good Day,

I have an issue with my custom search form.

My search form field is multiple-checkbox. 1. Red, 2.Blue

i need to display 1.Red only when another field [ multiple checkbox - "i am red" ] is checked.

This was good at the wp-admin but couldn't get it to work at search under Wp archieve.

Please advice. thanks !

#517349

in another word

when i check the checkbox "i am red " , another field [checkboxes] "1.red" to be appear for selection.

thanks

#517387

i search there is some post topics about this but still i could not achieve it .

https://toolset.com/forums/topic/conditional-display-based-on-values-from-checkboxes-field/

https://toolset.com/forums/topic/view-how-to-set-a-condition-for-2-checkbox-states/

from here:
https://toolset.com/forums/topic/conditional-fields-according-to-checkboxes/

it seems that i can use checkboxes for conditional. need to convert it into select box ? thanks

#517590

Hi, I'll be glad to help with this but I'm not quite sure what you're trying to accomplish. Is your site available online somewhere so I can see it? If so, can you give me access to your wp-admin area, and show me where I can find the conditional code, the custom fields, and the search form on the front-end of your site? I have enabled a private reply area so your login credentials will be secure.

#517941

HI, any update on this please.?

#517944

Hi, I'm logged in to your dev site now to check this out. I'll update you shortly.

#517953

Hi, I see what you're describing now. You would like to conditionally show and hide a filter group based on the selections in another filter. Toolset currently offers a way to limit filter inputs to the available results, but not a way to show or hide filters conditionally. For example, in the Real Estate reference site, you can see that the inputs in the "City" field are dependent upon the selection in the "State" field.

https://toolset.com/reference-site/toolset-real-estate/

More about limiting filter inputs can be found here:
https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/

#517956

Hi,
Sad to hear this is how toolset works now , any idea why this feature was not implemented ?

it seems without this feature, the site is not in sync with the back-end now.
at the backend i should be able to do all this.

even a normal wp contact form able to do this feature.

anyway, what is your alternative suggestion for now please.

#517980

Hi Chris, i was hoping to close this case and move on. do you have any alternative suggestion on implementations ?

#517981

Lots of factors influence our developers' decisions on features to implement, including other features being prioritized, critical bug fixes and so on, but I don't have a concrete reason why this particular one is not in the current pipeline.

As an alternative, there is the approach that limits input filters to the available results as I mentioned, and then there is custom code. A custom code solution would be outside the scope of support we provide here in the forum, unfortunately. If you need professional help to implement a custom solution, we have a list of certified contractors who are qualified to help within the Toolset environment. Here is the list of our contractors:
https://toolset.com/consultant/

#517983

"limits input filters to the available results " - can i use this to achieve my needs?

If i click 'for rent' , the field link to the 'for rent' will be active, if not masked ?

#517990

This type of filter works best with single select inputs. As the user selects an option in each input, the other select options update. The only visible options will be those which have available results. In your case, however, I don't think this approach will be helpful because you need the ability to select multiple options for each filter. Unfortunately the only way to achieve the effect you are looking for involves custom code.