Translation / Internationalization of Placeholder Text in Forms

forms

#1

I am customizing the form embed code using the instructions here: https://developers.hubspot.com/docs/methods/forms/advanced_form_options

I am able to change the button text as well as the field labels and error messages, but is there a way to translate the placeholder text as well? If not through the customization of embedding, is there an alternative method this could be achieved?

The form is built in HubSpot in German but I’d like to embed both that and an English version.


#2

Hi @pniebrzydowski,

There’s no way to edit/translate placeholder text by editing the embed code. You’ll need to edit the placeholder text in the HubSpot UI or do it using custom JavaScript.


#3

You can achieve this, by putting the following code in your form:

onFormReady: function($form) {
		jQuery('#firstname-xxx-xx-xxx-x-x').attr("placeholder", name);
}