Skip Navigation

[Resolved] General Help – Show data from a form chooser

This support ticket is created 7 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
- 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 12 replies, has 2 voices.

Last updated by Shane 7 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#537615
diagram.jpg

Hi. I really need some help or advice for something I've been asked to do, but have run into a dead end.

I'm trying to build a product picker based on a few questions with 2 select boxes that will show the information underneath, and can be changed. I've tried a parametric search, and I thought even Cred might help, or some sort of conditional data. But I keep running into a wall. Maybe a parent/child type filter would work, but I don't know where to start.

There will be two selections.

Select 1: Buyer, Owner
The information under would show the Buyer information as default.

Select 2: Option 2, Option 3, Option 4, Option 5
This needs to be hidden unless the Owner from Select 1 is selected.
The reason for this is because the client wants to keep these hidden from view is the user is a buyer.

The information underneath would be replaced by the options selected from Select 2.
The information also needs to default back to Buyer info if chosen.

I've included a diagram, so I hope it makes sense. Hopefully it's achievable with toolset.

Help me Obi-Wan. You're my only hope!

#537691

Shane
Supporter

Languages: English (English )

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

Hi Paul,

Thank you for contacting our support forum.

So Taking a look at this I have some 1 question, are you creating content or are you filtering content.

From there we can take it to the next step to see how best we can achieve this.

Thanks,
Shane

#537695

Hi Shane.

I go do what ever you suggest. But ideally, I was hoping to create a content template for each of of 5 in total.

But each one would link to a page to give more information. So I could create a custom post and use a taxomony or custom field to filter it accordingly.

#537722

Shane
Supporter

Languages: English (English )

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

Hi Paul,

So you're essentially doing Both.

I'm still not 100% clear on the workflow but I can provide some reference materials to guide you in the right direction.

So it seems you may need to use some conditionals in Types regarding these custom fields. I'm assuming Owner is a predefined list of persons and you will like to display everything else in that custom field.
https://toolset.com/documentation/user-guides/types-custom-fields-conditional-display/

Next it seems the option info section is a parametric search so I would advise taking a look at this link below.
https://toolset.com/documentation/user-guides/front-page-filters/

Please let me know if this information was useful.

Thanks,
Shane

#537744

Thanks Shane.
Originally I thought a conditional display might be the answer, but it would need to get that information from the select input type. And that is where I get stuck.

Are you suggesting using a parametric search combined with conditional logic?

I have mocked up workable screens with Adobe Experience if that help you understand the workflow. These are only screenshots but have workable links for the selections.

hidden link

#537814

Shane
Supporter

Languages: English (English )

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

Hi Paul,

Awesome thanks for the mockup, this I understand how to achieve. This can be done using our views frontend filters.

However all these attributes that are being filtered for must first be on your post itself.

Take a look at this example in one of our toolset demo.
hidden link

So you see its definitely possible based on my interpretation because from the mockup its filtering through posts.

Thanks,
Shane

#539047

Hi Shane

I almost have this working.
However is there a way that I can reset/clear the second select box if an option is selected from the first?

Also is there a way I can conditionally hide the second select box until the one of the options of the first options are selected.

#539226

Sorry. I didn't realise I closed this ticket.

However is there a way that I can reset/clear the second select box if an option is selected from the first using javascript?

Also is there a way I can conditionally hide the second select box until the one of the options of the first options are selected.

I tried this but it didn't work:

[wpv-conditional if="( '[wpv-search-term param='wpv-relationship-filter']' eq '2032' )"]

#539263

Shane
Supporter

Languages: English (English )

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

Hi Paul,

Could you provide me with a screenshot of the sections your are referring to so I can better advise you ?

Thanks,
Shane

#539507
Screen Shot 2017-06-21 at 09.18.56.png
Screen Shot 2017-06-21 at 09.18.17.png

Hi Shane

Screen shot attached.

I only have (and will only have) 2 options in the parent.
And filter the taxonomy of the children in the relationship.

Buyer / Seller
wpv-relationship-filter=2031

Professional
wpv-relationship-filter=2032

#539748

Shane
Supporter

Languages: English (English )

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

Screen Shot 2017-06-21 at 10.32.13 AM.png
Screen Shot 2017-06-21 at 10.32.50 AM.png

Hi Paul,

To reset the search form we actually have a reset button on the filter editor for that. See screenshot
This will reset your search form.

Also for the conditionally hidden options we have some basic parametric search settings that should be able to assist you with this See screenshot.

So you are able to define which field types are hidden or disabled.

Please let me know if this helps.

Thanks,
Shane

#539762

Hi Shane.

I can't really use the reset button, as that defeats the point of the chooser. But I can get round that with a content template if the 2 options don't match up.

However hiding the inputs will not work, as the first option in the relationship will disappear once you select a taxonomy.

#539873

Shane
Supporter

Languages: English (English )

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

Hi Paul,

Could you provide me with a link to the working page that you currently have so that I can run through the work flow ?

Thanks,
Shane