Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
After a recent update, you can no longer change the HubSpot form ID for translations as you used to. This issue arises when trying to translate HubSpot forms on multilingual sites using WPML.
Solution:
We recommend the following steps to resolve this issue:
1. Navigate to WPML >> Settings > Custom XML Configuration section and add the following XML:

<wpml-config><br />  <elementor-widgets><br />    <widget name="hubspot-form"><br />      <fields><br />        <field>content>formId</field><br />      <fields><br />    </widget><br />  <elementor-widgets><br /></wpml-config>

2. Use the HubSpot form widget instead of the default shortcode widget.
3. Attempt to translate the page again and check if the issue is resolved.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by sjoerdv-16 7 months, 1 week ago.

Assisted by: Noman.

Author Posts
September 3, 2025 at 1:40 pm

sjoerdv-16

Background of the issue:
I previously added HubSpot forms and could change the ID so it would translate to the appropriate language. After an update, this functionality doesn't work anymore. I followed the documentation at https://wpml.org/documentation/plugins-compatibility/integrating-hubspot-with-multilingual-sites-that-use-wpml/ but I don't see the HubSpot ID on the translate page.

Symptoms:
I previously could change the ID from the editor, but now I can't. Instead, I got nothing.

Questions:
Why can't I change the HubSpot form ID after the update?
How can I make the HubSpot form ID appear on the translate page?

September 4, 2025 at 8:13 am #17373673

Noman

Apparently, this is a compatibility conflict with Elementor. Let me create a new server to test it. When we spot a compatibility conflict, we need to reproduce it on one of our clean installs in order to escalate it to our compatibility team. I'm going to replicate it at fresh WP site and get back to you with an update soon.

Thanks for your cooperation and patience

September 5, 2025 at 7:37 am #17378090

Noman

I’m able to replicate the issue at fresh WP site by following the below steps:

1. Installed activated HubSpot, Elementor, WPML Multilingual CMS, and String Translation plugins.
2. Created a simple contact form.
3. Created a page in the default language and inserted the form shortcode.
4. Translated the page into secondary language using WPML Translation Editor but the shortcode ID was not there.
5. I tried the XML method but it also didn't work, it only shows in the Translation Editor when we disable the Elementor plugin.

Default language test form:
hidden link

I’m going to escalate this to our 2nd tier support team and will keep you posted with any updates.

Thank you for your cooperation and patience

September 7, 2025 at 4:53 pm #17382036

Noman

Sorry for the delay, I was off during the weekend (Friday-Saturday). I’ve escalated this issue to our 2nd tier support team and will get back to you once I hear back about it.

Thank you for your cooperation

September 9, 2025 at 7:18 am #17385690

Noman

Our 2nd tier support has provided a workaround for this issue.

1. Add the below XML in WPML >> Settings > Custom XML Configuration section:

<wpml-config>
  <elementor-widgets>
    <widget name="hubspot-form">
      <fields>
        <field>content>formId</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

2. Use the Hubspot form widget instead of the default shortcode widget as you can see in the attached screenshot.

3. Try to translate the page and see if this resolves the issue.

I have tested it on a sandbox site, and it worked correctly there. hidden link

Kindly let me know the results.
Thank you

HubSpot Form.jpg
form selection.jpg
form id translation 2.jpg
September 15, 2025 at 4:31 pm #17403487

sjoerdv-16

This worked. Thanks.