APIs & Integrations

pniebrzydowski
Participant

Translation / Internationalization of Placeholder Text in Forms

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.

0 Upvotes
2 Replies 2
Not applicable

Translation / Internationalization of Placeholder Text in Forms

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);
}
0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Translation / Internationalization of Placeholder Text in Forms

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.

0 Upvotes