Skip Navigation

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

Problem:
The client is experiencing an issue where the default value from an Elementor form is not available for translation in WPML Translation Editor
Solution:
We configured the default value field to be translatable in the WPML Translation Editor with the following steps:
1. We added the following XML code to the WPML >> Settings > Custom XML Configuration section:

<wpml-config>
  <elementor-widgets>
    <widget name="form">
      <fields>
        <field type="Form: name" editor_type="LINE">form_name</field>
        <field type="Form: Button text" editor_type="LINE">button_text</field>
        <field type="Form: Email subject" editor_type="LINE">email_subject</field>
        <field type="Form: Email from name" editor_type="LINE">email_from_name</field>
        <field type="Form: Email Content" editor_type="AREA">email_content</field>
        <field type="Form: Email subject 2" editor_type="LINE">email_subject_2</field>
        <field type="Form: Email Content 2" editor_type="AREA">email_content_2</field>
        <field type="Form: Success message" editor_type="LINE">success_message</field>
        <field type="Form: Error message" editor_type="LINE">error_message</field>
        <field type="Form: Required message" editor_type="LINE">required_message</field>
        <field type="Form: Invalid message" editor_type="LINE">invalid_message</field>
        <field type="Form: Required message" editor_type="LINE">required_field_message</field>
        <field type="Form: Redirect to URL" editor_type="LINE">redirect_to</field>
        <field type="Form: MailChimp Tags" editor_type="LINE">mailchimp_tags</field>
        <field type="Form: Previous Button" editor_type="LINE">step_previous_label</field>
        <field type="Form: Step Next Label" editor_type="LINE">step_next_label</field>
      </fields>
      <fields-in-item items_of="form_fields">
        <field type="Form: Field label" editor_type="LINE">field_label</field>
        <field type="Form: Field value" editor_type="LINE">field_value</field>
        <field type="Form: Field placeholder" editor_type="LINE">placeholder</field>
        <field type="Form: Field HTML" editor_type="AREA">field_html</field>
        <field type="Form: Acceptance Text" editor_type="LINE">acceptance_text</field>
        <field type="Form: Checkbox Options" editor_type="AREA">field_options</field>
        <field type="Form: Step Next Label" editor_type="LINE">step_next_label</field>
        <field type="Form: Step Previous Label" editor_type="LINE">step_previous_label</field>
        <field type="Form: Previous Button" editor_type="LINE">previous_button</field>
        <field type="Form: Next Button" editor_type="LINE">next_button</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

2. We opened the archive template in Edit mode and pressed the update button to reload the translation.
After these steps, the WPML Translation Editor successfully translated the field. Here is a doc for more details: https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

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.

This topic contains 8 replies, has 2 voices.

Last updated by Noman 1 year, 4 months ago.

Assisted by: Noman.

Author Posts
December 17, 2023 at 2:27 pm #15079049

johnD-60

I have an issue where my default value from a Elementor form that is not translated in the front End of my web site.

December 17, 2023 at 4:32 pm #15079313

johnD-60

Hi Noman,

I'm back here but can't find the online chat anymore 🙁 Do you want to have a remote session ?

December 17, 2023 at 4:36 pm #15079329

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sorry for the trouble in the chat, I am not sure what happened, the chat got disconnected somehow.

By default the Elementor form field default value is not translatable, I’m trying the XML method to make it translatable and get back to you with an update soon.

Thank you for your cooperation and patience

December 17, 2023 at 4:39 pm #15079331

johnD-60

Thank you so much Noman ! I really appreciate your help in a sunday. I just extend your temporary access for 3 more hours.

Thank you again and let me know If you need my help.

December 17, 2023 at 4:42 pm #15079333

johnD-60

I also changed the back end language in English for you 🙂

December 17, 2023 at 5:59 pm #15079461

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for extending the access limit and setting the backend language to English. I've successfully configured the default value field to be translatable in the WPML Translation Editor using the following steps:
1. Added the below XML code:

<wpml-config>
  <elementor-widgets>
    <widget name="form">
      <fields>
        <field type="Form: name" editor_type="LINE">form_name</field>
        <field type="Form: Button text" editor_type="LINE">button_text</field>
        <field type="Form: Email subject" editor_type="LINE">email_subject</field>
        <field type="Form: Email from name" editor_type="LINE">email_from_name</field>
        <field type="Form: Email Content" editor_type="AREA">email_content</field>
        <field type="Form: Email subject 2" editor_type="LINE">email_subject_2</field>
        <field type="Form: Email Content 2" editor_type="AREA">email_content_2</field>
        <field type="Form: Success message" editor_type="LINE">success_message</field>
        <field type="Form: Error message" editor_type="LINE">error_message</field>
        <field type="Form: Required message" editor_type="LINE">required_message</field>
        <field type="Form: Invalid message" editor_type="LINE">invalid_message</field>
        <field type="Form: Required message" editor_type="LINE">required_field_message</field>
        <field type="Form: Redirect to URL" editor_type="LINE">redirect_to</field>
        <field type="Form: MailChimp Tags" editor_type="LINE">mailchimp_tags</field>
        <field type="Form: Previous Button" editor_type="LINE">step_previous_label</field>
        <field type="Form: Step Next Label" editor_type="LINE">step_next_label</field>
      </fields>
      <fields-in-item items_of="form_fields">
        <field type="Form: Field label" editor_type="LINE">field_label</field>
        <field type="Form: Field value" editor_type="LINE">field_value</field>
        <field type="Form: Field placeholder" editor_type="LINE">placeholder</field>
        <field type="Form: Field HTML" editor_type="AREA">field_html</field>
        <field type="Form: Acceptance Text" editor_type="LINE">acceptance_text</field>
        <field type="Form: Checkbox Options" editor_type="AREA">field_options</field>
        <field type="Form: Step Next Label" editor_type="LINE">step_next_label</field>
        <field type="Form: Step Previous Label" editor_type="LINE">step_previous_label</field>
        <field type="Form: Previous Button" editor_type="LINE">previous_button</field>
        <field type="Form: Next Button" editor_type="LINE">next_button</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

In WPML >> Settings > Custom XML Configuration section.

2. Opened the archive template in Edit mode: hidden link and pressed an update button to reload the translation.

Now, the WPML Translation Editor has successfully translated the field as you can see in the attached screenshot.

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

value field translated.png
December 20, 2023 at 12:23 am #15097025

johnD-60

Hi,

Sorry to no answering you right away. The custom XML works as expected. Thank you so much! Can you redirect me to some kind of Knowledge Base were the process you followed is described? This will help me for futur custom field.

Btw If someone asked me to rate the service I had I would certainly grade 10/10 😉

December 20, 2023 at 12:25 am #15097027

johnD-60

Wonderful support service !!

December 21, 2023 at 6:09 am #15106673

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for your kind words. Here is the detailed doc that I followed to generate the XML: https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

If you face any issues in future, please feel free to create a new chat/ticket and we would be more than happy to help.

Have a nice day, thank you