<?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 Validate group member with lodged in user and set field value make read only in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590379#M7755</link>
    <description>&lt;P&gt;&lt;SPAN&gt;GIVEN the user is a member of the a&lt;/SPAN&gt;&lt;SPAN&gt;​&amp;nbsp; group and check user is current logged in user&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHEN the user opens the record producer then Field one choice set to specific value and make field ready only&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2026 09:30:59 GMT</pubDate>
    <dc:creator>vinnus</dc:creator>
    <dc:date>2026-08-24T09:30:59Z</dc:date>
    <item>
      <title>Validate group member with lodged in user and set field value make read only</title>
      <link>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590379#M7755</link>
      <description>&lt;P&gt;&lt;SPAN&gt;GIVEN the user is a member of the a&lt;/SPAN&gt;&lt;SPAN&gt;​&amp;nbsp; group and check user is current logged in user&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHEN the user opens the record producer then Field one choice set to specific value and make field ready only&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2026 09:30:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590379#M7755</guid>
      <dc:creator>vinnus</dc:creator>
      <dc:date>2026-08-24T09:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validate group member with lodged in user and set field value make read only</title>
      <link>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590385#M7756</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/682051"&gt;@vinnus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can call the call the script include using GlideAjax in the catalog client script and in the script inlcude enable the GlideAjax enabled checkbox to true&lt;/P&gt;&lt;P&gt;Client script:&lt;/P&gt;&lt;P&gt;function onLoad() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var ga = new GlideAjax('CheckUserGroup');&lt;BR /&gt;ga.getXMLAnswer(function(answer) {&lt;/P&gt;&lt;P&gt;if (answer === 'true') {&lt;/P&gt;&lt;P&gt;// Set Field 1 to the required choice value&lt;BR /&gt;g_form.setValue('field_one', 'specific_value');&lt;/P&gt;&lt;P&gt;// Make Field 1 read-only&lt;BR /&gt;g_form.setReadOnly('field_one', true);&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script include:&lt;/P&gt;&lt;P&gt;var CheckUserGroup = Class.create();&lt;BR /&gt;CheckUserGroup.prototype = Object.extendsObject(AbstractAjaxProcessor, {&lt;/P&gt;&lt;P&gt;isUserMember: function() {&lt;/P&gt;&lt;P&gt;var isMember = gs.getUser().isMemberOf('GROUP_SYS_ID');&lt;/P&gt;&lt;P&gt;return isMember;&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;type: 'CheckUserGroup'&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2026 09:42:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590385#M7756</guid>
      <dc:creator>PradeepReddyA</dc:creator>
      <dc:date>2026-08-24T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validate group member with lodged in user and set field value make read only</title>
      <link>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590405#M7757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/682051"&gt;@vinnus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class=""&gt;To achieve this requirement, we can use an &lt;STRONG&gt;onLoad Catalog Client Script&lt;/STRONG&gt; along with a &lt;STRONG&gt;Client Callable Script Include&lt;/STRONG&gt;.&lt;/P&gt;&lt;H4&gt;1. Catalog Client Script&lt;/H4&gt;&lt;P&gt;Use an &lt;STRONG&gt;onLoad Catalog Client Script&lt;/STRONG&gt; on the Record Producer.&lt;/P&gt;&lt;P&gt;The script checks whether the logged-in user belongs to the required group. If the user is a member:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set &lt;STRONG&gt;Field 1&lt;/STRONG&gt; to the required choice value in my case setting the value to "Choice 2".&lt;/LI&gt;&lt;LI&gt;Make &lt;STRONG&gt;Field 1&lt;/STRONG&gt; read-only.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iftekhar_mirza_0-1787565925930.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/527241i922EBCF0CFF07A0A/image-dimensions/728x224?v=v2" alt="iftekhar_mirza_0-1787565925930.png" title="iftekhar_mirza_0-1787565925930.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iftekhar_mirza_2-1787565963183.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/527243iF22C7225E353227D/image-dimensions/723x405?v=v2" alt="iftekhar_mirza_2-1787565963183.png" title="iftekhar_mirza_2-1787565963183.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;H4&gt;2. Client Callable Script Include&lt;/H4&gt;&lt;P&gt;Since the group membership needs to be validated against sys_user_grmember, use a Client Callable Script Include:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iftekhar_mirza_3-1787566072305.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/527244i74F997C7A0F484E8/image-dimensions/768x458?v=v2" alt="iftekhar_mirza_3-1787566072305.png" title="iftekhar_mirza_3-1787566072305.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Result :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Populating the logged in user on the "Assigned to" field and updating the choice field&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iftekhar_mirza_4-1787566171894.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/527245i730F005D6479C09D/image-dimensions/629x235?v=v2" alt="iftekhar_mirza_4-1787566171894.png" title="iftekhar_mirza_4-1787566171894.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;P&gt;Please check below screenshots&lt;/P&gt;&lt;P&gt;Please mark my answer as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helpful/correct&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if it resolves your query.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Iftekhar&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 24 Aug 2026 10:15:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/validate-group-member-with-lodged-in-user-and-set-field-value/m-p/3590405#M7757</guid>
      <dc:creator>iftekhar_mirza</dc:creator>
      <dc:date>2026-08-24T10:15:14Z</dc:date>
    </item>
  </channel>
</rss>

