Question

The most of you probably know that in Belgium are spoken multi languages. I must integrate a handling for these multi languages in the save action of a webform. The languages are bordered to Dutch and French.

For handling forms I have installed Sitecore Webforms For Marketers (WFFM). With WFFM I have created 2 language versions of the form. I have defined a custom save action to store the form values in the Master database (as an item).

What is the problem? The problem is that an item in the Master database is not stored on the correct language. The cause is that WFFM for both language versions of the form using the same custom save action. Is there anyone who knows how to fix this?

Thanks a lot.

Jordy

Was it helpful?

Solution

In your save action you need to somehow get the front end users context language first. Then when you access your storage repository folder in the master DB, get that master DB item in the language of the front end user (Dutch or French):

Master.GetItem(storagePath, ctxLanguage)

Now when you create the record in the master DB it will be in the language of the front end user.

OTHER TIPS

Jordy,

The easiest way to go about this, is to remove the "shared" checkbox in the form template on the save actions field. That way, you can specify a specific action for every language.

I might add, you HAVE to specify actions in every language if you do this, don't forget!

You can find the form template under templates/web forms for marketers/form

Hope this helps!

Erwin

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top