Umbraco.Forms.Issues icon indicating copy to clipboard operation
Umbraco.Forms.Issues copied to clipboard

Magic string not working in "Field mandatory message" for property of type Data Consent

Open Seda145 opened this issue 2 years ago • 2 comments

Steps: Umbraco: 10.1.0 Forms: 10.1.0

  1. Create a form with a field of type Data Consent.
  2. Below the "Field is mandatory" button enter a dictionary reference (prefixed #) as mandatory message.
  3. Attempt to submit the form on the website without filling in the field.
  4. See how the mandatory message will not be translated and will instead print the dictionary key.

afbeelding

Seda145 avatar Sep 13 '22 20:09 Seda145

Hi - I've been investigating this, but I haven't been able to replicate the issue (at least with the latest code, Forms 10.1.2, but I don't think anything has changed in this area since the version you are running).

I guess I should ask if you could to double-check please that the dictionary key you have set up in the Translation section is exactly Form.Validation.ConsentIsRequired?

AndyButland avatar Sep 14 '22 06:09 AndyButland

Hello Andy,

I have double checked it using another dictionary item which works on another field but not the mandatory message field of the data consent property. I have cleared all caches and restarted the application as well.


Van: Andy Butland @.> Verzonden: woensdag 14 september 2022 08:00 Aan: umbraco/Umbraco.Forms.Issues @.> CC: Roy Wierer @.>; Author @.> Onderwerp: Re: [umbraco/Umbraco.Forms.Issues] Magic string not working in "Field mandatory message" for property of type Data Consent (Issue #868)

Hi - I've been investigating this, but I haven't been able to replicate the issue (at least with the latest code, Forms 10.1.2, but I don't think anything has changed in this area since the version you are running.

I guess I should ask if you could to double-check please that the dictionary key you have set up in the Translation section is exactly Form.Validation.ConsentIsRequired?

— Reply to this email directly, view it on GitHubhttps://github.com/umbraco/Umbraco.Forms.Issues/issues/868#issuecomment-1246280800, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHGQKOJMCYMT6HMFE7KZ6Y3V6FSXFANCNFSM6AAAAAAQLZMR7U. You are receiving this because you authored the thread.Message ID: @.***>

Seda145 avatar Sep 15 '22 13:09 Seda145

I face same issue in Umbraco forms 12.2.3. Is this issue fixed? UmbracoForms12_ConsentMessageTranslation.docx

Ramya-Devendiran avatar May 22 '24 09:05 Ramya-Devendiran

We've had another look at trying to replicate this one, across the latest on Forms 10, 12 and 13, but are not able to I'm afraid.

The only way we could see it is if the required @Html.RenderUmbracoFormDependencies() isn't provided on the template, so perhaps that's the case with your situation.

I can share the replication I did just in case it shows something that's different for your case.

But otherwise as we can't see this in the latest versions of each major, will close now as non-reproducible.

AndyButland avatar Jun 05 '24 08:06 AndyButland

Sorry for the confusion. I meant the translation for the "Text used to confirm consent" is not working. The page returns compilation error.

Ramya-Devendiran avatar Jun 06 '24 07:06 Ramya-Devendiran

Perhaps you can share the error you are seeing?

AndyButland avatar Jun 06 '24 07:06 AndyButland