Skip Navigation

[Resolved] I need a conditional display of data in a select field of a parametric search

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

This topic contains 2 replies, has 2 voices.

Last updated by Rich 6 years, 3 months ago.

Author
Posts
#1096410

Tell us what you are trying to do?
I have a form select field in a view that is populated with data from a post relationship. I want to only display options in the select field that have been connected. The reason is because if an option is selected that isn't connected yet there will be no results displayed.

Is there any documentation that you are following? no

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

#1096755

If you head to the View's Custom Search Settings > Let me choose individual settings manually > Which options to display in the form inputs > Show only available options for each input > Hide/Disable, does that not do what you expect?
(Not to show "inexistent" options)

This is producing only the "existing" connections on my local tests.

#1096939

That did work! Thank you!