Problems with multi language forms

Hi,

I used forms in German and Englisch. But when my colleagues in the USA used the form, the German form was displayed. I used your arcticle SharePoint forms for alternative languages — Plumsail SharePoint Forms Documentation. Please help.

Best wishes
Tom

Hello @TWendt,

Please share the routing settings and the code you are using in routing.

Hi,

here are the screenshots.

Best wishes
Tom

@TWendt,

Please try updating the condition like so and test the form routing:

_spPageContextInfo.currentUICultureName.includes('en');

Hi Margo,

I modify the condition. But the problem persists.

if(_spPageContextInfo.currentUICultureName.includes('en')){
return '7168dafa-9908-4eec-8a3e-49e3eaab9d12';
}

Best wishes
Tom

@TWendt,

What's their site culture? Could you update the code like so and share the screenshot of the alert box:

if(_spPageContextInfo.currentUICultureName.includes('en')){
    alert(_spPageContextInfo.currentUICultureName);
    return '7168dafa-9908-4eec-8a3e-49e3eaab9d12';
}

Hi again,

there is no alert box displayed. I believe the script will not executed. But the site is displayed in English.

Best wishes
Tom

Hello @TWendt ,

I hope my message is NOT unwanted, but I use the same approach as you described, but I use "strict equality", but this should not be a problem:


if (_spPageContextInfo.currentUICultureName === "fr-FR") {
  return "xxxxxxx--92fa-a65f042b4814"; // French
}
if (_spPageContextInfo.currentUICultureName === "de-DE") {
  return "xxxxxxx-936-c5b128f125ce"; // German
}
if (_spPageContextInfo.currentUICultureName === "cs-CZ") {
  return "xxxxxx-49e7-b995-981bce1317c5"; // Czech
}

Check the site language settings:

{yourTenantAndSite}/_layouts/15/muisetng.aspx

I hope it will help you :slight_smile:
Regards
Stepan

@TWendt,

This is my bad, the alert must be outside of the condition. If the alert is not executed, this means that it is not met. Try it like so:

alert(_spPageContextInfo.currentUICultureName);
if(_spPageContextInfo.currentUICultureName.includes('en')){
     return '7168dafa-9908-4eec-8a3e-49e3eaab9d12';
}

Hi Margo,
it doesn't work. My Site, the navigation and the list are in English. I send the link from the site to my colleague in the USA. He should test the form.

Best wishes
Tom

@TWendt,

Please check the version of the widget and webpart this form is using. open developer tools(F12) >> Source >> Page >> forms.plumsail.com. Please share the screenshot.

Hi Margo,

the screenshot.

@TWendt,

You need to update the app package to the latest version, but I don't think it is the issue.

The code in custom routing must execute in any case. Do you have content types enabled for this list?

Hi,

yes content types are enabled. How can I update the package?

Best wishes
Tom

@TWendt,

Do you have form sets in all content types? Is the custom routing the same for all?

To update the app package, install it from the Microsoft AppSource and enable it for all sites within your organization.

Hi Margo,
I updated the package and save all forms. The forms sets are in all content types. And the custom routing is the same for all.

@TWendt,

I believe there might be something wrong with content type set up.

Is it possible to provide us temporary access to your tenant to test the form? If not, please record a video of opening the form for all content types and the default form set. Please open the form in full screen and include the address bar in the video.

Please email us at support@plumsail.com to continue the conversation