Skip Navigation

[Gelöst] Placeholder not working

This support ticket is created vor 7 Jahre, 3 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
- 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)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by triggeru571 vor 7 Jahre, 3 Monate.

Assisted by: Minesh.

Author
Artikel
#471467

The placeholder for Custom Taxonomy using a select field is not working. This is my code

 [cred_field field='payment-status' placeholder='Did you get paid' display='select' single_select='true']

I even tried to add some JavaScript instead to see if this helps but nothing.

 ( function( $ ) {
    $( document ).ready( function(){
         
        $("input[name='payment-status']").attr("placeholder", "Did you get paid");
  

Any solutions? Thanks

#471700

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - you are displaying field as a select dropdown so select dropdown do not have placeholder attribute.

You can try following wrokaround:

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

jQuery("select[name='wpcf-payment-status']").prepend('<option value="">- Did you get paid-</option>');
jQuery("select[name='wpcf-payment-status']")[0].selectedIndex = 0;

});
#471815

Thanks but that did not work. I will use Gravity Forms instead.

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