Add information box to form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2014 01:55 PM
Can I add UI macros to a form that is not a record producer? In the record producer there is an option to add UI macros but I do not see them on the actual form. I am trying to add an information area to a label. The available options that i know about: Default value:specifies the value when the field is first displayed. Problem after the record producer is submitted i still need to have the additional information about the label available for display. option 2: using hint. Not very noticeable only see this when it is hovered over. Option 3 Using annotations. These can be turned off. I am trying to add the information icon and when the user hovers over this it will display all the information that pertains to the record. Any other suggestions would be greatly appreciated. I am trying to avoid creating very long label names but give users the 'hints' on what is expected in each box. Some of these are very long for example explaining the 5 code escalation levels almost a paragraph..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2014 05:27 PM
The way to add elements like UI macros to regular forms is to leverage formatters. When you create a formatter, you can add it to the form much like you add fields to a form.
Creating a Formatter - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2014 07:19 AM
thanks Jacob, I was able to create a formatter from an existing UI macro 'Info Message' and add it to the incident form. I do not see the info message when i hover over the blue 'i' icon. On second thought I shouldnt even be modify the existing xml on the oob info_message.xml? I also cant figure out how to add the formatter directly to the right (or left) of a label.
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<!-- info messages -->
<div class="system_message outputmsg_info">
<table cellspacing="0" cellpadding="0" border="0" class="background_transparent">
<tr>
<td class="message_image"><img src="images/outputmsg_info.gifx"
alt="${gs.getMessage('This is where i expect to see the when i hover
over the formatter')}" width="16" height="16"/></td>
<td width="100%">
${body}
</td>
</tr>
</table>
</div>
</j:jelly>