<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Info Message Client Script in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772072#M343851</link>
    <description>&lt;P&gt;I am trying to add a blue bar info message under a field with a client script.&amp;nbsp; I want the info message to be several lines.&amp;nbsp; How can I do a line break on the info message to have the message show on multiple lines?&amp;nbsp; I want it to look like the below but I have tried a few different options and it just puts in on the same line.&lt;/P&gt;
&lt;P&gt;5 - Exceeds&lt;/P&gt;
&lt;P&gt;4 - Meets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onLoad() {
    g_form.showFieldMsg("u_review", ("5 - Exceeds" +  + "4 - Meets"));
    callback(saveAndClose);

}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43832iDE800B6DF345171B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 15:25:35 GMT</pubDate>
    <dc:creator>Russell Park</dc:creator>
    <dc:date>2019-11-05T15:25:35Z</dc:date>
    <item>
      <title>Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772072#M343851</link>
      <description>&lt;P&gt;I am trying to add a blue bar info message under a field with a client script.&amp;nbsp; I want the info message to be several lines.&amp;nbsp; How can I do a line break on the info message to have the message show on multiple lines?&amp;nbsp; I want it to look like the below but I have tried a few different options and it just puts in on the same line.&lt;/P&gt;
&lt;P&gt;5 - Exceeds&lt;/P&gt;
&lt;P&gt;4 - Meets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onLoad() {
    g_form.showFieldMsg("u_review", ("5 - Exceeds" +  + "4 - Meets"));
    callback(saveAndClose);

}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43832iDE800B6DF345171B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:25:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772072#M343851</guid>
      <dc:creator>Russell Park</dc:creator>
      <dc:date>2019-11-05T15:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772073#M343852</link>
      <description>&lt;P&gt;&lt;SPAN class="token keyword"&gt;try this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token keyword"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;onLoad&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt; g_form&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;showFieldMsg&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"u_review"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"5 - Exceeds"&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;+"\n"&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"4 - Meets"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;callback&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;saveAndClose&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:29:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772073#M343852</guid>
      <dc:creator>chidanandadhath</dc:creator>
      <dc:date>2019-11-05T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772074#M343853</link>
      <description>&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onLoad() 
{ 
g_form.showFieldMsg("u_review", ("5 - Exceeds" +'\n'+ "4 - Meets")); 
callback(saveAndClose);
 }&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:32:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772074#M343853</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-11-05T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772075#M343854</link>
      <description>&lt;P&gt;Prateek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is what I get when I use that code.&amp;nbsp; Is there a different option I can use to get my needed results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43831i460804BEA8D9005A/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:39:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772075#M343854</guid>
      <dc:creator>Russell Park</dc:creator>
      <dc:date>2019-11-05T15:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772076#M343855</link>
      <description>&lt;P&gt;Check this out, might help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=7197a729dba82f0023f4a345ca9619d1" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=7197a729dba82f0023f4a345ca9619d1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Anurag&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:43:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772076#M343855</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2019-11-05T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772077#M343856</link>
      <description>&lt;P&gt;Try this out:&lt;/P&gt;
&lt;P&gt;Make sure you uncheck Isolate script field on the record.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43830i50DC81B126F26B17/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onLoad() {
var str = "5 - Exceeds" +"\n"+ "4 - Meets";
alert(str);
var controlID = g_form.getControl('u_review').id + '_fieldmsg'; 
g_form.showFieldMsg('u_review', str); 
document.getElementById(controlID).style.whiteSpace = 'pre-wrap'; 
callback(saveAndClose);

}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:04:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772077#M343856</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-11-05T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772078#M343857</link>
      <description>&lt;P&gt;You can can have two showFieldMsg stataments&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;   g_form.showFieldMsg("u_review", "5 - Exceeds");
   g_form.showFieldMsg("u_review", "4 - Meets");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:17:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772078#M343857</guid>
      <dc:creator>dvp</dc:creator>
      <dc:date>2019-11-05T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772079#M343858</link>
      <description>&lt;P&gt;It shows on 2 different lines but not&amp;nbsp;the type of info message I was looking for.&amp;nbsp; I like the blue bar message right below the field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43833iD996B4C98AF5FD69/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:17:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772079#M343858</guid>
      <dc:creator>Russell Park</dc:creator>
      <dc:date>2019-11-05T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772080#M343859</link>
      <description>&lt;P&gt;I have tried that it it works but not the look I am going for.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:18:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772080#M343859</guid>
      <dc:creator>Russell Park</dc:creator>
      <dc:date>2019-11-05T17:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772081#M343860</link>
      <description>&lt;P&gt;I just put an alert to confirm.&lt;/P&gt;
&lt;P&gt;You can comment out the alert line in your code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43829i59D1EB67374565DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:40:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772081#M343860</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-11-05T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Info Message Client Script</title>
      <link>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772082#M343861</link>
      <description>&lt;P&gt;Thank you Prateek I was able to get his to work.&amp;nbsp; I appreciate your help and have marked this correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Russell&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:46:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/info-message-client-script/m-p/772082#M343861</guid>
      <dc:creator>Russell Park</dc:creator>
      <dc:date>2019-11-05T20:46:27Z</dc:date>
    </item>
  </channel>
</rss>

