Skip Navigation

[Resuelto] Cred Taxonomy Select Field options

This support ticket is created hace 5 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

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

Etiquetado: 

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por rubenB hace 5 años.

Asistido por: Minesh.

Autor
Mensajes
#1380517

Hi sorry I couldn't work this out from the documentation at
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field

But is it possible for the Cred Select field using this shortcode
[cred_field field='parent-body' force_type='taxonomy' output='bootstrap' display='select' single_select='true' value=""]

To display an empty value by default?
And also for the select options to orderby name?

They would both be very user friendly improvements to this post-edit form, if its possible?

Thanks for your help again,
Ruben

#1380657

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To display an empty value by default?
==>
This feature is known to us and already reported to our internal ticket system. I see that it set to publish with future release of form version 2.6 in the near future.

For now, you can use the jQuery code to add default option to your taxonomy select box - Please try to add the following code to your Form's JS box:

jQuery(document).ready(function($){

jQuery("select[name='YOUR-SELECT-NAME']").prepend('<option value="">- choose-</option>');
jQuery("select[name='YOUR-SELECT-NAME']")[0].selectedIndex = 0;
});

Where:
- Replace 'YOUR-SELECT-NAME' with your original select name

And also for the select options to order by name?
==>
There is no such feature available for now. You can file a new feature request using the following link:
- https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1386537

Thanks Minesh, sorry for the slow response.

That does the job. I think the select form empty by default will be a nice improvement to Cred.

#1386539

My issue is resolved now. Thank you!