<?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 Limit the single line text variable with a minimum of 3 characters in Virtual Agent forum</title>
    <link>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928111#M7625</link>
    <description>&lt;P&gt;Hi every one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to set a restriction of having a minimum of 3 letters to a single line text or else show a error to enter minimum required characters to the filed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For maximum length of the filed I have already used the variable attribute filed max_length=30&lt;/P&gt;&lt;P&gt;Please help me out with the minimum letters to be entered into the text box.&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2024 10:20:58 GMT</pubDate>
    <dc:creator>Sanafelix1323</dc:creator>
    <dc:date>2024-05-13T10:20:58Z</dc:date>
    <item>
      <title>Limit the single line text variable with a minimum of 3 characters</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928111#M7625</link>
      <description>&lt;P&gt;Hi every one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to set a restriction of having a minimum of 3 letters to a single line text or else show a error to enter minimum required characters to the filed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For maximum length of the filed I have already used the variable attribute filed max_length=30&lt;/P&gt;&lt;P&gt;Please help me out with the minimum letters to be entered into the text box.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 10:20:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928111#M7625</guid>
      <dc:creator>Sanafelix1323</dc:creator>
      <dc:date>2024-05-13T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the single line text variable with a minimum of 3 characters</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928139#M7627</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/547932"&gt;@Sanafelix1323&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create onChange client script. Sample script is-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var field = g_form.getValue('your_field_name'); 
 if (field.length &amp;lt; 3) {
        alert('Enter at least 3 characters in field'); 
         } &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark my answer helpful and correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 10:39:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928139#M7627</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2024-05-13T10:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the single line text variable with a minimum of 3 characters</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928234#M7632</link>
      <description>&lt;P&gt;@Community Alums&amp;nbsp; I want to know like can't we show this as a filed error message which will be visible in the employee center portal .&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 11:51:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928234#M7632</guid>
      <dc:creator>Sanafelix1323</dc:creator>
      <dc:date>2024-05-13T11:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the single line text variable with a minimum of 3 characters</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928304#M7633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How do you want to show the message?&lt;/P&gt;
&lt;P&gt;You an add alert of field message, same way as Amit showed. Examples below&lt;/P&gt;
&lt;DIV class="p"&gt;
&lt;DIV class="code-toolbar"&gt;
&lt;PRE class="prettyprint  language-plaintext" tabindex="0" data-explanation-rendered="true"&gt;&lt;CODE&gt;g_form.showFieldMsg('impact','Low impact response time can be one week','info');
//or this defaults to info type
//g_form.showFieldMsg('impact','Low impact response time can be one week');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="toolbar"&gt;
&lt;DIV class="toolbar-item"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 May 2024 12:20:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/limit-the-single-line-text-variable-with-a-minimum-of-3/m-p/2928304#M7633</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2024-05-13T12:20:56Z</dc:date>
    </item>
  </channel>
</rss>

