<?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 Re: Show Dependent question in GRC forum</title>
    <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3230896#M19945</link>
    <description>&lt;P&gt;You can see this functionality is shown in the docs:&amp;nbsp;&lt;A href="https://www.servicenow.com/docs/csh?topicname=automate-response.html&amp;amp;version=latest" target="_blank"&gt;https://www.servicenow.com/docs/csh?topicname=automate-response.html&amp;amp;version=latest&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're not seeing the option, upgrade the plugin/store app and if that fails, speak with ServiceNow Support&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 03:30:56 GMT</pubDate>
    <dc:creator>Kieran Anson</dc:creator>
    <dc:date>2025-04-08T03:30:56Z</dc:date>
    <item>
      <title>Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229408#M19909</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;BR /&gt;can someone please help i need to show one dependent question when it's above question was answered as partial/complete, that system needs to check other table data( central table asset field has specific value) in smart assessment form please help i am new to GRC&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 03:54:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229408#M19909</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T03:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229412#M19910</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153309"&gt;@harinya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry your requirement is not clear. please share some more details along with screenshots.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 03:56:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229412#M19910</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-07T03:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229422#M19911</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks for Response&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On the &lt;STRONG&gt;Assessment Form&lt;/STRONG&gt;, I need to display a dependent question when the following conditions are met:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The answer to a specific question is &lt;STRONG&gt;Partial&lt;/STRONG&gt; or &lt;STRONG&gt;Complete&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The dependent question should only be shown if, in another table (which contains an asset field), the central solution value is &lt;STRONG&gt;Onboarded&lt;/STRONG&gt;. The asset field in this table corresponds to the instance ID field in the Business Application table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;How can I implement this logic to check data in the other table and display the dependent question dynamically on the Assessment Form?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 04:03:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229422#M19911</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T04:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229429#M19912</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153309"&gt;@harinya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you cannot make this much dynamic logic to show/hide the survey question&lt;/P&gt;
&lt;P style="box-sizing: border-box; margin: 0px; color: #1d1d1d; font-family: Lato, Gilroy, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;I have posted a workaround for something like this in below link and it is working fine, see if it works for you, please enhance further&lt;/P&gt;
&lt;P style="box-sizing: border-box; margin: 0px; color: #1d1d1d; font-family: Lato, Gilroy, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A style="box-sizing: border-box; background-color: transparent; color: #007393; text-decoration: underline; font-size: inherit;" href="https://www.servicenow.com/community/developer-forum/how-can-we-show-incident-reference-field-to-filtered-incidents/m-p/1925218" target="_blank" rel="noopener noreferrer"&gt;How can we show incident reference field to filtered incidents where they are the requested for / requested by on survey .&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 04:12:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229429#M19912</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-07T04:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229435#M19913</link>
      <description>&lt;P&gt;gone through link but seems above is not relevant to my case , here i need to show dependent question as the text field not any reference field&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 04:19:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229435#M19913</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T04:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229446#M19914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153309"&gt;@harinya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Within the Assessment Workspace designer, you can only make questions conditionally visible based on other questions. So you could show your question if the answer to a previous question is Partial or Complete. But not based on a table lookup; which is what I'm assuming you're wanting for question 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question visibility is set via the additional attributes menu&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KieranAnson_0-1744001108811.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/432778i1D3DFBDC46D6706E/image-size/large?v=v2&amp;amp;px=999" alt="KieranAnson_0-1744001108811.png" title="KieranAnson_0-1744001108811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 04:45:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229446#M19914</guid>
      <dc:creator>Kieran Anson</dc:creator>
      <dc:date>2025-04-07T04:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229451#M19915</link>
      <description>&lt;P&gt;Thanks for Response , yes we can show a question based on previous answers but here we need to check the other table data, i have tried with created a text question and using the automate response trying to create the script seems that also not working&amp;nbsp;&lt;BR /&gt;will it work please help&lt;BR /&gt;by gliding the business app table and central solution table&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 04:53:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229451#M19915</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T04:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229453#M19916</link>
      <description>&lt;P&gt;try {&lt;BR /&gt;&lt;BR /&gt;} catch (error) {&lt;BR /&gt;gs.error("Error in Automated Response Script: " + error.message);&lt;BR /&gt;return false; // Return false in case of errors&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 05:07:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229453#M19916</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T05:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229465#M19918</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/153309"&gt;@harinya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then it's not possible to call any script include etc&lt;/P&gt;
&lt;P&gt;You can simply show/hide based on previous survey questions.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 05:05:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229465#M19918</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-07T05:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229478#M19919</link>
      <description>&lt;P&gt;Ah, good idea to use the automated response feature!&lt;/P&gt;
&lt;P&gt;In combination to using the script, have you used that with the condition builder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your If/then condition would invoke the automate response when a previous question is the partial/complete answer you desire&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KieranAnson_1-1744003250314.jpeg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/432782i92A97419B10AD5F8/image-size/large?v=v2&amp;amp;px=999" alt="KieranAnson_1-1744003250314.jpeg" title="KieranAnson_1-1744003250314.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="KieranAnson_0-1744003211801.jpeg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/432781i2ABA5A47FB22F4F9/image-size/large?v=v2&amp;amp;px=999" alt="KieranAnson_0-1744003211801.jpeg" title="KieranAnson_0-1744003211801.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share a screenshot of your current automatic response setup (of the modal that appears)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 05:21:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229478#M19919</guid>
      <dc:creator>Kieran Anson</dc:creator>
      <dc:date>2025-04-07T05:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229641#M19920</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/431446"&gt;@Kieran Anson&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;But i don't see the &lt;STRONG&gt;if /Then&lt;/STRONG&gt; conditions in the automated Response&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 07:33:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229641#M19920</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T07:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229751#M19921</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/431446"&gt;@Kieran Anson&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please help to glide the table central solution table data and that Asset value is onboarded or not&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;// Step 1: Query the Central Solution Table&lt;BR /&gt;var centralSolutionGr = new GlideRecord('central_solution_table'); // Replace with the actual Central Solution table name&lt;BR /&gt;centralSolutionGr.query();&lt;/P&gt;&lt;P&gt;while (centralSolutionGr.next()) {&lt;BR /&gt;// Get the asset field from the Central Solution Table&lt;BR /&gt;var asset = centralSolutionGr.getValue('asset'); // Replace 'asset' with the actual field name&lt;/P&gt;&lt;P&gt;if (asset) {&lt;BR /&gt;// Step 2: Query the Business Application Table using the asset as the Instance ID&lt;BR /&gt;var businessAppGr = new GlideRecord('business_application_table'); // Replace with the actual Business Application table name&lt;BR /&gt;businessAppGr.addQuery('instance_id', asset); // Replace 'instance_id' with the correct field name in the Business Application Table&lt;BR /&gt;businessAppGr.query();&lt;/P&gt;&lt;P&gt;if (businessAppGr.next()) {&lt;BR /&gt;// Found a match: Business Application Instance ID matches Central Solution Asset&lt;BR /&gt;gs.info('Match Found: Central Solution Asset = ' + asset + ', Business Application Instance ID = ' + businessAppGr.getValue('instance_id'));&lt;/P&gt;&lt;P&gt;// Step 3: Check if the asset is "Onboarded" and update the created text field&lt;BR /&gt;if (asset === 'Onboarded') {&lt;BR /&gt;centralSolutionGr.setValue('created_text_field', 'Asset is Onboarded'); // Replace 'created_text_field' with the correct text field name&lt;BR /&gt;centralSolutionGr.update(); // Save the record with the updated value&lt;BR /&gt;gs.info('Updated created text field for Central Solution Asset: ' + asset);&lt;BR /&gt;}&lt;BR /&gt;} else {&lt;BR /&gt;// Log if no match is found in Business Application Table&lt;BR /&gt;gs.info('No match found for Asset: ' + asset + ' in Business Application Table');&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;} catch (error) {&lt;BR /&gt;// Log any errors for debugging purposes&lt;BR /&gt;gs.error('Error in script: ' + error.message);&lt;BR /&gt;}&lt;BR /&gt;will this work&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 09:20:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229751#M19921</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T09:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229753#M19922</link>
      <description>&lt;P&gt;Automate Response will give default Answer, i didn't get that answer how will show&amp;nbsp;&lt;BR /&gt;not able see if and Then cond also&lt;BR /&gt;please help on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 09:22:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3229753#M19922</guid>
      <dc:creator>harinya</dc:creator>
      <dc:date>2025-04-07T09:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dependent question</title>
      <link>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3230896#M19945</link>
      <description>&lt;P&gt;You can see this functionality is shown in the docs:&amp;nbsp;&lt;A href="https://www.servicenow.com/docs/csh?topicname=automate-response.html&amp;amp;version=latest" target="_blank"&gt;https://www.servicenow.com/docs/csh?topicname=automate-response.html&amp;amp;version=latest&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're not seeing the option, upgrade the plugin/store app and if that fails, speak with ServiceNow Support&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 03:30:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/grc-forum/show-dependent-question/m-p/3230896#M19945</guid>
      <dc:creator>Kieran Anson</dc:creator>
      <dc:date>2025-04-08T03:30:56Z</dc:date>
    </item>
  </channel>
</rss>

