Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Catalog Client Script to show alert message in different languages

Luiz Lucena
Mega Sage

Hello my friends, 

We have a Service Catalog form for users to submit Shared Mailbox request and our automation script automatically adds the "@domain.com" suffix. When users ignore the tooltip that warns them to not add "@domain", the script fails.

To prevent those that ignored the tooltip, I'm planning to add an alert message. 
For that, we need to consider our audience language. French, Brazilian Portuguese and Spanish as well.

I've added the Messages entries for each language as below:

LuizLucena_1-1727297648239.png

And a catalog client script calling that message, but is not working. 

LuizLucena_0-1727297459822.png

Whenever I set the language in portal to one of those, the message always shows in English.

What am I missing?

 

Thanks in advance,

Luiz

2 REPLIES 2

Shruti
Giga Sage
Hi,
Try below code
 
g_form.clearValue('u_new_mbx_request');
        getMessage("Please DO NOT include an @domain.com in your input. It will be added automatically", function(msg) {
            alert(msg);
        });

Not applicable