Skip Navigation

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

Problem:
Redirect Ninja Form to language-specific thank you page

Solution:
1. Go to Ninja Forms-> Edit your Form
2. Emails & Actions
3. Edit the redirection field
4. Add {wp:site_url}/thank-you/ instead of the permalink alone as now wp:site_url will include /cy/ in the translation and automatically redirect thank-you to its translation.

Relevant Documentation: https://wpml.org/documentation/related-projects/creating-multilingual-forms-using-ninja-forms-and-wpml/#adding-a-redirect-for-translated-forms

100% of people find this useful.

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 6 replies, has 3 voices.

Last updated by jimR-8 4 years ago.

Assisted by: Bobby.

Author Posts
June 8, 2020 at 12:25 am #6316303

jimR-8

>>Tell us what you are trying to do?

I'm trying to redirect the user to a thank you page in the current language

- the redirect action in English (first language) goes to /thank-you/
- the thank you page in Welsh is /cy/diolch/

I don't see anywhere in the translation management to translate the redirect action and therefore redirect to the correct page.

please advise

thanks
J

June 9, 2020 at 12:41 am #6325325

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi There,

Please read this topic for specific steps on enabling and translating Ninja Forms settings:
https://wpml.org/forums/topic/ninja-forms-translation/

I would also recommend reading the following articles from our documentation to learn more about Language Configuration Files, String Translation and Admin Texts:

Language Configuration Files
https://wpml.org/documentation/support/language-configuration-files/

Admin Text / String Translation:
https://wpml.org/documentation/getting-started-guide/string-translation/

Let me know your results, please.

June 9, 2020 at 1:10 pm #6331509

jimR-8

I had tried that already. Redirect actions do not appear in the list of settings. It’s not a fixed element since you can add any number or actions to the form processor

Thanks
J

June 9, 2020 at 5:06 pm #6334427

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed I recommend taking FULL BACKUP of your database and your website.**
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/

You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

June 11, 2020 at 7:26 am #6348005

lenaS-7

Is there already a solution to this? We have the same problem.

June 11, 2020 at 11:24 pm #6354683

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

Usually you would be able to edit the field where you add the URL in the "Redirect" action from the admin screens (WPML->String Translation->Translate texts in admin screens »), however I was not able to locate that specific field. [I recommend reaching out to Ninja Forms regarding this]

To make the redirection go to the translation try the following :

1. Go to Ninja Forms-> Edit your Form
2. Emails & Actions
3. Edit the redirection field
4. Add {wp:site_url}/thank-you/ instead of the permalink alone as now wp:site_url will include /cy/ in the translation and automatically redirect thank-you to its translation.

Screen Shot 2020-06-11 at 4.20.20 PM.png
June 12, 2020 at 6:58 pm #6361417

jimR-8

This solution...

{wp:site_url}/thank-you/

...works perfectly thanks. it redirects as expected to

/cy/diolch/

regards
J

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.