HTML in System UI messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2015 10:22 PM
I'm using a system UI message in an installation exit. This will be used to display the message which contains an email address when the account of a user is locked. I'm trying to output the email address using <a href="mailto> tags but as the message field on the sys_ui_message table is of type String, it's not rendering the HTML. Is there any way to go around this without changing the type of the field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 07:22 AM
As I think through the possible workarounds, they all seem more complicated than is reasonable. Is the landing page after this the login page but with the locked out message? In the installation exit, you could put that error message in the GlideSession object. Then, you could put a bit of client side script on the login page to call a simple Ajax handler to extract that and display it if it exists. That seems like it would work but like I said, seems complicated for your needs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 08:04 AM
Hi Gerald,
May be this works for if you are trying to display the message on form header, if you can combine the UI message and below method in installation exit-
gs.include("FormInfoHeader");
var msg = new FormInfoHeader();
msg.addMessage('<b>Account Locked</b>'+gs.get.getMessage('My Message')); // this method can accept html messages
This can be workaround, if it fits your requirements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2015 06:26 PM
Hi there,
Looks like one of our front end guys was escaping html tags for messages for some reasons. It's all fixed now.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2015 11:44 AM
May I ask how you identified and corrected this issue. I might have the same problem.