<?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 Make UI Page Text area mandatory in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248367#M899471</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'd like to make this pop up box mandatory. What change needs to be made in the UI Page?&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/79168iBDB88A90C692E418/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-markup"&gt;&lt;CODE&gt;&amp;lt;g:ui_form&amp;gt;
	&amp;lt;input id="clientData" name="clientData" value="${RP.getWindowProperties().get('clientData')}" type="hidden" /&amp;gt;
	
	&amp;lt;div class="row"&amp;gt;
		&amp;lt;div &amp;gt;
			&amp;lt;span style="padding:16px;font-weight:bold;"&amp;gt;What were you attempting to do when the performance issue occurred?&amp;lt;/span&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="row"&amp;gt;
		&amp;lt;div class="form-horizontal"&amp;gt;
			&amp;lt;div class="form-group" style="margin-left:16px !important;margin-right:16px !important"&amp;gt;
				&amp;lt;textarea id="comments" name="comments" class="form-control" spellcheck="true" style="overflow: hidden; word-wrap: break-word; resize: none;" &amp;gt;&amp;lt;/textarea&amp;gt;
			&amp;lt;/div&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="modal-footer"&amp;gt;
	&amp;lt;span class="pull-right"&amp;gt;
		&amp;lt;button class="btn btn-default" id="cancel_button" onclick="window.GlideModalForm.prototype.locate(this).destroy(); return false" style="min-width: 5em;" title="" type="submit"&amp;gt;
			Cancel
		&amp;lt;/button&amp;gt;
		&amp;lt;button class="btn btn-primary" id="ok_button" onclick="actionOK()" style="min-width: 5em;" title="" type="submit"&amp;gt;
			Create Incident
		&amp;lt;/button&amp;gt;
	&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;/g:ui_form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Nov 2018 16:40:35 GMT</pubDate>
    <dc:creator>Nitesh Balusu</dc:creator>
    <dc:date>2018-11-28T16:40:35Z</dc:date>
    <item>
      <title>Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248367#M899471</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'd like to make this pop up box mandatory. What change needs to be made in the UI Page?&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/79168iBDB88A90C692E418/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-markup"&gt;&lt;CODE&gt;&amp;lt;g:ui_form&amp;gt;
	&amp;lt;input id="clientData" name="clientData" value="${RP.getWindowProperties().get('clientData')}" type="hidden" /&amp;gt;
	
	&amp;lt;div class="row"&amp;gt;
		&amp;lt;div &amp;gt;
			&amp;lt;span style="padding:16px;font-weight:bold;"&amp;gt;What were you attempting to do when the performance issue occurred?&amp;lt;/span&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="row"&amp;gt;
		&amp;lt;div class="form-horizontal"&amp;gt;
			&amp;lt;div class="form-group" style="margin-left:16px !important;margin-right:16px !important"&amp;gt;
				&amp;lt;textarea id="comments" name="comments" class="form-control" spellcheck="true" style="overflow: hidden; word-wrap: break-word; resize: none;" &amp;gt;&amp;lt;/textarea&amp;gt;
			&amp;lt;/div&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="modal-footer"&amp;gt;
	&amp;lt;span class="pull-right"&amp;gt;
		&amp;lt;button class="btn btn-default" id="cancel_button" onclick="window.GlideModalForm.prototype.locate(this).destroy(); return false" style="min-width: 5em;" title="" type="submit"&amp;gt;
			Cancel
		&amp;lt;/button&amp;gt;
		&amp;lt;button class="btn btn-primary" id="ok_button" onclick="actionOK()" style="min-width: 5em;" title="" type="submit"&amp;gt;
			Create Incident
		&amp;lt;/button&amp;gt;
	&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;/g:ui_form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Nov 2018 16:40:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248367#M899471</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-28T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248368#M899472</link>
      <description>&lt;P&gt;Hi Nitesh,&lt;/P&gt;
&lt;P&gt;here you will find the client script that will do that:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.servicenow.com/community/community?id=community_question&amp;amp;sys_id=d686c725db1cdbc01dcaf3231f9619aa" target="_blank" rel="nofollow"&gt;Set mandatory in UI page text area&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please try, if it will work, remember to reply also to the post above so that the other will know which is the right solution.&lt;/P&gt;
&lt;P&gt;If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.&lt;/P&gt;
&lt;P&gt;Thanks you&lt;/P&gt;
&lt;P&gt;Cheers&lt;BR /&gt;Alberto&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:10:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248368#M899472</guid>
      <dc:creator>Alberto Consonn</dc:creator>
      <dc:date>2018-11-28T19:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248369#M899473</link>
      <description>&lt;P&gt;are you sure you have sent correct UI Page code?&lt;/P&gt;
&lt;P&gt;the ui page code you have sent is showing like below..&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/79169iFE18738B0435A8C5/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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to make field mandatory on ui page define &lt;STRONG&gt;mandatory="true"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;eg:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;lt;g:ui_reference name="${ref_table}_ref" id="${ref_table}_ref" table="${ref_table}" query="${query}" completer="AJAXTableCompleter" &lt;STRONG&gt;mandatory="true"&lt;/STRONG&gt; aria-required="true"/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;kindly refer the below OOTB UI page as a reference.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://yourInstanceid.service-now.com/sys_ui_page.do?sys_id=6a7128b28f1321001a83cfd827bdee22&amp;amp;sysparm_record_target=sys_ui_page&amp;amp;sysparm_record_row=19&amp;amp;sysparm_record_rows=38&amp;amp;sysparm_record_list=htmlCONTAINSmandatory%5EORDERBYDESCsys_updated_on" rel="nofollow"&gt;https://yourInstanceid.service-now.com/sys_ui_page.do?sys_id=6a7128b28f1321001a83cfd827bdee22&amp;amp;sysparm_record_target=sys_ui_page&amp;amp;sysparm_record_row=19&amp;amp;sysparm_record_rows=38&amp;amp;sysparm_record_list=htmlCONTAINSmandatory%5EORDERBYDESCsys_updated_on&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:38:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248369#M899473</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2018-11-28T19:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248370#M899474</link>
      <description>&lt;P&gt;Oops sent the wrong one! I corrected it now, can you take a look?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 20:33:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248370#M899474</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-28T20:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248371#M899475</link>
      <description>&lt;P&gt;can you try now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"&amp;gt;
	
	&amp;lt;g:ui_form&amp;gt;
	&amp;lt;input id="clientData" name="clientData" value="${RP.getWindowProperties().get('clientData')}" type="hidden" /&amp;gt;
	
	&amp;lt;div class="row"&amp;gt;
		&amp;lt;div &amp;gt;
			&amp;lt;span style="padding:16px;font-weight:bold;"&amp;gt;What were you attempting to do when the performance issue occurred?&amp;lt;/span&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="row"&amp;gt;
		&amp;lt;div class="form-horizontal"&amp;gt;
			&amp;lt;div class="form-group" style="margin-left:16px !important;margin-right:16px !important"&amp;gt;
				&amp;lt;textarea id="comments" name="comments" class="form-control" spellcheck="true" style="overflow: hidden; word-wrap: break-word; resize: none;" required="required"&amp;gt;&amp;lt;/textarea&amp;gt;
				

				
			&amp;lt;/div&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="modal-footer"&amp;gt;
	&amp;lt;span class="pull-right"&amp;gt;
		&amp;lt;button class="btn btn-default" id="cancel_button" onclick="window.GlideModalForm.prototype.locate(this).destroy(); return false" style="min-width: 5em;" title="" type="submit"&amp;gt;
			Cancel
		&amp;lt;/button&amp;gt;
		&amp;lt;button class="btn btn-primary" id="ok_button" onclick="actionOK()" style="min-width: 5em;" title="" type="submit"&amp;gt;
			Create Incident
		&amp;lt;/button&amp;gt;
	&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;
		&amp;lt;/g:ui_form&amp;gt;
&amp;lt;/j:jelly&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 05:21:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248371#M899475</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2018-11-29T05:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248372#M899476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try with mandatory="true" or required.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 05:24:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248372#M899476</guid>
      <dc:creator>Omkar Mone</dc:creator>
      <dc:date>2018-11-29T05:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248373#M899477</link>
      <description>&lt;P&gt;Doesn't seem to work, I had tried that before actually, any more thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:10:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248373#M899477</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-29T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248374#M899478</link>
      <description>&lt;P&gt;Hi Omkar,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you want me to insert it? inside text area id tag? If it's that I tried it already.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:11:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248374#M899478</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-29T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248375#M899479</link>
      <description>&lt;P&gt;it will come like below screenshot. if you will enter some value it will not come but in empty it will prompt.&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/79170i2D7B5142839331AD/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>Thu, 29 Nov 2018 15:28:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248375#M899479</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2018-11-29T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248376#M899480</link>
      <description>&lt;P&gt;Interestingly it's half working when I hit try it but not in general when I am using that UI Page.&amp;nbsp;&lt;BR /&gt;Also, when I hit try it, its giving me the error message below to enter a value but its still running the processing script and creating the incident even without entering anything in the description.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:34:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248376#M899480</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-29T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248377#M899481</link>
      <description>&lt;P&gt;This is the problem.&lt;/P&gt;
&lt;P&gt;It's running the client script even if the description is blank.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/8E0E99C836EC6DD14CDFF2003F33C375/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:55:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248377#M899481</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-29T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Make UI Page Text area mandatory</title>
      <link>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248378#M899482</link>
      <description>&lt;P&gt;okay fixed it, I also had to add this in the client script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;if(gel('comments').value=='')
		return false;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 16:00:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-ui-page-text-area-mandatory/m-p/2248378#M899482</guid>
      <dc:creator>Nitesh Balusu</dc:creator>
      <dc:date>2018-11-29T16:00:01Z</dc:date>
    </item>
  </channel>
</rss>

