Skip Navigation

[Resolved] Address field seems to have default placeholder?

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

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by cortJ 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#579096
Address field on CRED.png

The Address field seems to have some default Placeholder text, 'Enter address'.

How can I change that? I've obviously tried placeholder="My Placeholder Text Here" on the cred_field. A Multiple lines field type used on the same form works with placeholder text?

#579177

I see what you mean, the documented placeholder attribute does not seem to allow you to manage this text. I will escalate this to our 2nd tier team for investigation. In the meantime, you can use some JavaScript to manage this:

jQuery(document).on('cred_form_ready', function(){
  jQuery('input[name=wpcf-address-field-slug]').attr('placeholder', 'Your custom text here');
});

Replace address-field-slug with the slug of your custom field, and modify the text as needed.

I'll update you here with the information I receive about the escalated issue, please stand by.

#579500

Okay our 2nd tier support team has filed a feature request to support the placeholder attribute for this field. It's actually registered in Toolset Maps, so first the maps plugin must be updated then CRED can be updated to work with it. I don't have a timeline available yet for this improvement, but I'll update you here when I receive additional information. For now the workaround is as described above.

#1203851

Is the placeholder attribute for the address field available now? If yes, where can it be set?