<?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 Masking a field  in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102688#M59077</link>
    <description>&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Hi everyone,&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;I am just starting out to learn about the platform and I need a bit of help.&amp;nbsp;Can anyone tell me how to include a "/" as a mask of a field ?&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;BR style="-webkit-font-smoothing: antialiased; box-sizing: border-box;" /&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;If an User inputs the number 20221111, I want to make it so that a non-admin user sees the field masked in the following way (2022/11111).&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;BR style="-webkit-font-smoothing: antialiased; box-sizing: border-box;" /&gt;Also, I want to make it so that while the User is typing the number, the "/" already shows up.&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Also, the record must be saved in the table without the "/".&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Can anyone help me in regards to what is the best way to do this.&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 18:30:09 GMT</pubDate>
    <dc:creator>Nilson Lopes</dc:creator>
    <dc:date>2022-08-05T18:30:09Z</dc:date>
    <item>
      <title>Masking a field</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102688#M59077</link>
      <description>&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Hi everyone,&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;I am just starting out to learn about the platform and I need a bit of help.&amp;nbsp;Can anyone tell me how to include a "/" as a mask of a field ?&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;BR style="-webkit-font-smoothing: antialiased; box-sizing: border-box;" /&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;If an User inputs the number 20221111, I want to make it so that a non-admin user sees the field masked in the following way (2022/11111).&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;BR style="-webkit-font-smoothing: antialiased; box-sizing: border-box;" /&gt;Also, I want to make it so that while the User is typing the number, the "/" already shows up.&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Also, the record must be saved in the table without the "/".&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Can anyone help me in regards to what is the best way to do this.&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0px; color: #252423; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Web', sans-serif; font-size: 14px; font-style: inherit; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #dcdffa; text-decoration-style: initial; text-decoration-color: initial;"&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 18:30:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102688#M59077</guid>
      <dc:creator>Nilson Lopes</dc:creator>
      <dc:date>2022-08-05T18:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Masking a field</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102689#M59078</link>
      <description>&lt;P&gt;Step 1:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the below onLoad client script to automatically add "/" after the user input the 4th character.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.getElement("&amp;lt;variable_name&amp;gt;").observe('input', function() {
        var cur = g_form.getValue("variable_name");
        if (cur.length == 4) {
            g_form.setValue("variable_name", cur + "/");
        }   
    });
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2: Use onSubmit client script to remove the "/" from the value or use BR to remove the value from the variable.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 04:12:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102689#M59078</guid>
      <dc:creator>Vasantharajan N</dc:creator>
      <dc:date>2022-08-06T04:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Masking a field</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102690#M59079</link>
      <description>&lt;P&gt;Here goes the onSubmit Client Script to remove the' / ' (step 2):&lt;BR /&gt;&lt;BR /&gt;function onSubmit() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;//Type appropriate comment here, and begin script below&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var noBar = g_form.getValue('variable_name').replace(/\D/g,'');&lt;BR /&gt;&amp;nbsp; &amp;nbsp;g_form.setValue('variable_name',noBar);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 02:36:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/1102690#M59079</guid>
      <dc:creator>Roger K_</dc:creator>
      <dc:date>2022-08-24T02:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Masking a field</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/2376281#M186339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Vasantharajan N,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have below requirements from customer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In Incident form if the end user updated personal information in the work notes section like Passport number or DL number (EX: DL1234567) I need to hide "1234567" from 1234567 to ####### using background script only can you please help me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://www.servicenow.com/community/now-platform-forum/masking-a-field/m-p/1102688#" target="_blank" rel="noopener"&gt;PREVIEW&lt;/A&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:52:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/masking-a-field/m-p/2376281#M186339</guid>
      <dc:creator>sakamv</dc:creator>
      <dc:date>2022-11-08T15:52:56Z</dc:date>
    </item>
  </channel>
</rss>

