Umbraco.Forms.Issues
Umbraco.Forms.Issues copied to clipboard
Magic string not working in "Field mandatory message" for property of type Data Consent
Steps: Umbraco: 10.1.0 Forms: 10.1.0
- Create a form with a field of type Data Consent.
- Below the "Field is mandatory" button enter a dictionary reference (prefixed #) as mandatory message.
- Attempt to submit the form on the website without filling in the field.
- See how the mandatory message will not be translated and will instead print the dictionary key.
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
?
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: @.***>
I face same issue in Umbraco forms 12.2.3. Is this issue fixed? UmbracoForms12_ConsentMessageTranslation.docx
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.
Sorry for the confusion. I meant the translation for the "Text used to confirm consent" is not working. The page returns compilation error.
Perhaps you can share the error you are seeing?