Restricted Characters in Customized Messages

You can modify text strings to meet your business needs. Avoid using characters that can cause errors in custom messages, depending on how the text string is used and whether the string is generated by Java or JavaScript. (In most cases, text messages are generated by Java, and pop-up boxes and some buttons are generated by JavaScript.) For example, errors occur if you add this string inside a JavaScript call because JavaScript cannot parse double quotation marks:

someJavaScript("<%= HspMsgs.SOME_RESOURCE %>");

The best practice is to avoid using these characters in custom messages:

  • Single quotation marks

  • Double quotation marks

  • Back slashes

  • Forward slashes