<?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 UI Policy not working properly in Member Feedback forum</title>
    <link>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2955266#M3101</link>
    <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple form with 5 selections, each one show and hide different variables, it's all working fine, but I do have another ui policy inside one if the options for a YES/NO question, if the user select YES it will show a new variable, is select no it will hide, it works fine too, the problem is, if i select NO and change my first selection, to a new option, when i return to the previous option, that variable appears even with NO selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UI policy working good here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_4.png" style="width: 453px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362905i1EF118558E327EFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_4.png" alt="Screenshot_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is when I change the options in the menu and return to the previous one in the form:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_3.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362908iEEBE4F29991B63DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_3.png" alt="Screenshot_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created this script trying to force the selection to YES if I change the option, but it's not working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362907i601D09AE6511D6E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.png" alt="Screenshot_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 17:13:42 GMT</pubDate>
    <dc:creator>rafaelalves4337</dc:creator>
    <dc:date>2024-06-06T17:13:42Z</dc:date>
    <item>
      <title>UI Policy not working properly</title>
      <link>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2955266#M3101</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple form with 5 selections, each one show and hide different variables, it's all working fine, but I do have another ui policy inside one if the options for a YES/NO question, if the user select YES it will show a new variable, is select no it will hide, it works fine too, the problem is, if i select NO and change my first selection, to a new option, when i return to the previous option, that variable appears even with NO selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UI policy working good here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_4.png" style="width: 453px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362905i1EF118558E327EFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_4.png" alt="Screenshot_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is when I change the options in the menu and return to the previous one in the form:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_3.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362908iEEBE4F29991B63DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_3.png" alt="Screenshot_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created this script trying to force the selection to YES if I change the option, but it's not working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362907i601D09AE6511D6E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.png" alt="Screenshot_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 17:13:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2955266#M3101</guid>
      <dc:creator>rafaelalves4337</dc:creator>
      <dc:date>2024-06-06T17:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: UI Policy not working properly</title>
      <link>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2955302#M3102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/715628"&gt;@rafaelalves4337&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use a simple UI Policy with your dependancy question, it works. It would be better if you change your "Yes or No" choice question to Yes/No Type field. That will help you easier.&lt;/P&gt;&lt;P&gt;Here i made 2 questions Q1 and Q2, with same scenario and i populate the country field only when i select Q1 yes. Even if i switch with Q2 Yes or No options it will not impact.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VEENPRANEETHK_0-1717695352138.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362914iB00B202F98B13472/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="VEENPRANEETHK_0-1717695352138.png" alt="VEENPRANEETHK_0-1717695352138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VEENPRANEETHK_1-1717695393028.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362915iF16D24AA40DFBD4C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="VEENPRANEETHK_1-1717695393028.png" alt="VEENPRANEETHK_1-1717695393028.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VEENPRANEETHK_2-1717695431713.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362916i2087B73E1D3D17D1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="VEENPRANEETHK_2-1717695431713.png" alt="VEENPRANEETHK_2-1717695431713.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VEENPRANEETHK_3-1717695475122.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/362917i24EA5FC5D44CC5C5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="VEENPRANEETHK_3-1717695475122.png" alt="VEENPRANEETHK_3-1717695475122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to reach me, I can help you on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veena Praneeth&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 17:38:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2955302#M3102</guid>
      <dc:creator>VEEN PRANEETH K</dc:creator>
      <dc:date>2024-06-06T17:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: UI Policy not working properly</title>
      <link>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2956126#M3105</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/715628"&gt;@rafaelalves4337&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Instead of any other client script,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add more UI actions in the UI policies for the fields that need to hide (visible = false) for this condition after the existing UI action present for visibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You need to add clear value logic in the your all UI policies script in a way that add clear value in false script for the variables that has UI action present below for visibility (visible = true). Means for reverse UI policy that variables should hide.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dnyaneshwaree_0-1717762056271.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/363136i1B4708F39BEC87C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dnyaneshwaree_0-1717762056271.png" alt="Dnyaneshwaree_0-1717762056271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 12:57:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/member-feedback-forum/ui-policy-not-working-properly/m-p/2956126#M3105</guid>
      <dc:creator>Dnyaneshwaree</dc:creator>
      <dc:date>2024-06-07T12:57:35Z</dc:date>
    </item>
  </channel>
</rss>

