Skip Navigation

[Gelöst] Taxonomy dropdown (single select) with first option as null

This support ticket is created vor 4 Jahre, 8 Monate. 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)

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Shane vor 4 Jahre, 8 Monate.

Assisted by: Shane.

Author
Artikel
#1308217

I want to do a Taxonomy dropdown in a cred form, but it is an optional field, so I want the first option to be "null". When I tried this, it ignores these two parameters:
value='' select_text='-- select --'

And just shows the first Taxonomy already filled into the dropdown select. It works for a force_type='field' but not a force_type='taxonomy'. This is what I was trying:

[cred_field field='national-league-affiliation' force_type='taxonomy' output='bootstrap' display='select' single_select='true' value='' select_text='-- select --']

#1308245

Shane
Supporter

Languages: Englisch (English )

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

Hi Susan,

Thank you for contacting our support forum.

Taxonomies operate differently from custom fields so an option like this won't work. You will need to add a default taxonomy term to the list in order for you to get this option.

Since its on a CRED form.

Thanks,
Shane

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.