How to translate field error message based on user's language?

Buddy 1
Tera Contributor

Hi,

There is a field validation and it will show error message ,if not validated properly.

Now the error message should be shown in different languages based on user's language

 

How to achieve this?

Thanks in advance!

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Buddy 1 

do this and it will work based on user's language

getMessage("YOUR_MESSAGE_KEY", function(msgString) {
                g_form.showFieldMsg('field_name', msgString, 'error');
            });

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Thank you, It works as per the expectation!