Skip Navigation

[Resolved] Cred Taxonomy Select Field options

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by rubenB 1 year, 5 months ago.

Assigned support staff: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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!