Localized message

Include form data in localized messages in ChronoForms.

Overview

The issue occurs because shortcodes for form data fields are not processed within locale strings in the current version.
Wait for the next update, which will allow using placeholders like %s in locale strings and passing form data as parameters to the {l:} shortcode.

Answered
ChronoForms v8
hw hwsassisi 13 Dec, 2025

Dear all,

after a submit, in a message I would like to include a localized message containing some data from form.For instance, if the localized message is "GREETINGS=Dear {data:customer_name}, thank you for your message" and if I have a field "customer_name", I expect that the message will display the name of the customer in the greeting message.

Unfortunately, it seems that the content of the fields are not used to compose the localized messages.

How to solve?Regards

Max_admin Max_admin 14 Dec, 2025
Answer

Hi

Having shrotcodes in Locales strings is not in the last update, but I have added it to the next update.

You will be able to have this Locale string:

Localized message image 1

then use this as your message:

Localized message image 2

Each %s will be replaced by a parameter to the {l:} shortcode

This is also explained here:

https://www.chronoengine.com/faqs/chronoforms/chronoforms8/how-to-translate-your-form-to-multiple-languages

P.S: if you are subscribed to the newsletters then you should get notified by email when the new update is ready.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hw hwsassisi 14 Dec, 2025

Thank you very much Max,

is it possible to add more than 1 parameter? For instance

{l:GREETINGS {data:first_name} {data:family_name}}

with localized text

GREETINGS=Dear %s %s, thank you for your message

?

Regards

Max_admin Max_admin 14 Dec, 2025

Yes, that will be possible.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply