On This Page:
- Getting Started
- Creating and Translating Your Forms
- Updating Form Translations
- Adding a Redirect for Translated Forms
- Known Issues
- Getting Help From Our Support
Getting Started
Start by installing and activating the following:
- The Ninja Forms plugin
- WPML core plugin and WPML String Translation add-on
- The Ninja Forms Multilingual add-on plugin
If you’re new to WPML, check out our Getting Started Guide. It quickly walks you through all the translation options you can use.
Creating and Translating Your Forms
These are the main steps to follow for translating your forms:
- Create the form in the default language.
- Translate the form.
- Insert a Ninja Forms block into a post, page, or widget and select the form you want to use from the dropdown.
- Translate the post, page, or widget that holds the form.
Creating the Default Language Form
To create the default language form, go to Ninja Forms → Add New. In this example, we will use the “Contact Us” form template. Of course, you can use a blank template and build your form from scratch.
Translating the Form
To translate your form go to the WPML → Translation Management page and follow these steps:
- In the Select items for translation section, select Ninja Forms from the first drop-down menu and then click the Filter button.
- Select the forms that you want to translate.
- In Select translation options, choose the Translate option for the language(s) you want to translate your forms into.
- Select the Translate myself option and click on the Add to Translation Queue button. If you’re not the only translator in the site, select the Assign to a translator option and click the button called Add to Translation Basket. After clicking it, go to the Translation Basket tab, select the translator and send the basket for translation.
- Now, go to WPML → Translations and click the Translate button for the job related to your Ninja form. If you’re not the only translator in the site, this button is called Take and Translate.
You’re taken to the Advanced Translation Editor where you can translate your form. You can use the built-in automatic translation for quick and easy translation.
For the time being, you can’t set your secondary language forms to have a different date format for the date field nor a different currency.
Inserting the Form Into the Page or Post
After creating and translating your form it is time to add it to a page, post, or widget. In our example, we created a new page in English and used the Ninja Forms block to add our form.
Translating Pages and Posts that Include Forms
Finally, translate the page, post, or widget that includes your form. You can do this by clicking the plus icon corresponding to the language you want to translate your page into in the Language box.
Updating Form Translations
If you change the form in the default language you need to update its translations as well.
To update the translation of a form, follow these steps:
- Navigate to WPML → Translations.
- The Status shows that the form translation needs updating. Click the Edit button in the form’s row.
Adding a Redirect for Translated Forms
Ninja Forms allows you to add a redirect to a specific page on your site after a site visitor submits a form. For this redirect to work in all your site’s languages, first translate the page you want to redirect to. Then follow these steps:
- Edit your Ninja form.
- Go to Email & Actions and add or edit the redirect.
- In the URL field, add {wp:site_url} followed by the slug of the page you want to redirect to.
Don’t forget to translate the page you want to redirect to. Once you’ve done this, the form will automatically redirect to the page in the correct language.
Known Issues
There are no unresolved compatibility issues between this plugin and WPML. Search all known issues.Getting Help From Our Support
We have supporters in our forum who are ready six days a week to help you. They are trained in how to use WPML with Ninja Forms.
If you are setting up the site and WPML yourself, please use our Technical support forum.