Skip Navigation

[Resolved] Category Values

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Shane 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1305923

This is a platform where coaches can list their businesses.

When they sign up they will complete a post form to create a listing for their business. In this post form, they need to select a Sport from a select dropdown (this dropdown is auto-populated with the listing categories).

One of these categories is "My sport isn't listed" if this is selected we need to show a single line text field so the user can enter their sport.

We are currently trying to write the conditional logic but; as the select dropdown is auto-populated, we can't figure out how to get or give the "My sport isn't listed" a value?

#1305991

Shane
Supporter

Languages: English (English )

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

Hi James,

Thank you for getting in touch.

Is the dropdown a taxonomy or is it a custom field?

Please let me know.

Thanks,
Shane

#1306019

Hey Shane,

Thanks for the reply. It’s a taxonomy field.

James

#1306029

Shane
Supporter

Languages: English (English )

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

Hi James,

So currently its actually not possible to do a conditional with the taxonomies.

However there should be a button that the user can use to add a new term if their choice is not there in the predefined list.

Thanks,
Shane

#1306063

Hello,

Ah that’s a pain - is it easily possible via JS?

#1306075

Shane
Supporter

Languages: English (English )

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

Hi James,

Using js to hide the field ?

I mean the add button is there is a new taxonomy is to be added. Is it that when the use selects "My sport isn't listed" you want the add button to show up.

However this will add it to the existing list but the user will need to then select it. Please let me know.

Also send me a link to the form so that I can see what exactly would be required.

Thanks,
Shane