Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Translated Error Message not displaying at the top of the page #3105

Closed
ghost opened this issue Aug 3, 2020 · 5 comments
Closed

[BUG] Translated Error Message not displaying at the top of the page #3105

ghost opened this issue Aug 3, 2020 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 3, 2020

Environment

  • Hosting type: found it locally, also on Form.io
  • Formio.js version: 4.11
  • Browser: I tested with Chrome and Firefox

Steps to Reproduce

  1. Create a form with a translation and a required field
  2. Create a translation for the required field (for example 'required': '{{field}} est requis.', )
  3. Submit without filling in the required field

Expected behavior

The translation displays correctly next to the Form Component and in the Alert Message at the top of the page.

Observed behavior

The translation displays correctly next to the Form Component, but at the top of the page it only shows "alertMessage" (copied from the Form.io Translation Walkthrough) :

Veuillez corriger les erreurs suivantes avant de l'envoyer.

  • alertMessage
  • alertMessage
  • alertMessage

Example

Form.io Translation Walkthrough
JSFiddle
image

@ghost ghost added the bug label Aug 3, 2020
@kzhang-dsg
Copy link

I am facing the same issue. Downgrading to version 4.10.2 fixed the issue. Looks like it is a new bug introduced in the new 4.11 version.

@wag110894
Copy link
Contributor

@JeStud @kzhang-dsg Thank you both for reaching out! We are able to replicate this issue on our side. We have created a ticket. For reference, the ticket number is FJS-1128. We have assigned this item as a high priority. We will let you know once this issue has been resolved.

Thank you!

@ghost
Copy link
Author

ghost commented Aug 5, 2020

Thanks @kzhang-dsg, using 4.10.2 works as a solution
Thanks @wag110894, appreciate it

@ol-nu
Copy link

ol-nu commented Sep 10, 2020

I saw that the bug was fixed in https://github.com/formio/formio.js/pull/3116/files and I tried out the newest rc-version (4.12.0-rc.14) which includes this fix also and it seems like it's still not working.

@wag110894
Copy link
Contributor

Hello all,

The issue with the JSFiddle above was that needed need to add 'alertMessage': '{{label}}: {{message}}' in their list with translations for each language. Here is working JSFiddle: https://jsfiddle.net/231ygthz/6/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants