Skip Navigation

[Resolved] Conditional Display on Product Post Form

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

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by ericO 4 years, 9 months ago.

Assisted by: Raja Mohammed.

Author
Posts
#1832389

Tell us what you are trying to do?

I have 3 Product Series (Taxonomy) I am trying to change what the Product Form looks like based on the Product Series, so if it is "SheauPac" it would show a radio button on the Product Form.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
I do not think so

What is the link to your site?

I would have to give you access to BlueHost.

#1833043

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2020-11-03 at 10.39.03.png

You want to conditionally display an input in a form based on the selection of a taxonomy field on the same form?

You can do that, but the GUI doesn't let you insert conditions for taxonomies directly, you have to add the condition manually.

So, add a Conditional Group to your form (you can drag it from Extra elements in the sidebar), and expand it to be able to add a condition.

Click the link to edit the condition manually, and then add the condition in this format, where in my example the taxonomy slug is "colour" and the term I'm testing to see if it is checked is "Red":

($colour) eq 'Red'

Drag whatever field you want to conditionally display inside the Conditional Group block. In the screenshot in my example I'm simply adding an HTML block with some text, but you can add your radio input there.

You can see how it looks in the screenshot.

#1836655

My issue is resolved now. Thank you!