Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

getMessage() function is not working.

BoHyun Jung
Mega Sage

I create korean and english messages in System Localization -> Message.

 

English message appears well, but korean message doesn't appear.

 

How can i see korean message?

 

[Messages]

BoHyunJung_0-1697608734397.png

[client script]

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }
	
    if (g_form.getValue('work_start') > g_form.getValue('u_additional_completed')) {
        getMessage('\'Additional completed\' must be greater than \'Actual start\'', function(msg){
			alert(msg);
		});
        g_form.setValue('u_additional_completed', '');
    }

}

 

1 ACCEPTED SOLUTION

@RaghavSh 

 

The cause has been found.

I put escape character in Key Value. It works well after removing escape character.

View solution in original post

5 REPLIES 5

@BoHyun Jung Make sense, your configuration was correct, it seemed to be a data issue.


Raghav
MVP 2023
LinkedIn