<?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>topic Re: button show/hide in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913648#M21725</link>
    <description>&lt;P&gt;Thank you Anthony. It worked.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 05:25:34 GMT</pubDate>
    <dc:creator>srujanaponnuru</dc:creator>
    <dc:date>2022-04-04T05:25:34Z</dc:date>
    <item>
      <title>button show/hide</title>
      <link>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913539#M21722</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a requirement as below.&lt;/P&gt;
&lt;P&gt;There are three buttons.&lt;/P&gt;
&lt;P&gt;Button1&lt;/P&gt;
&lt;P&gt;Button2&lt;/P&gt;
&lt;P&gt;Button3&lt;/P&gt;
&lt;P&gt;Each button has set of questions in a text box.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i click on Button1, only the button1 questions need to display in the text box.&lt;/P&gt;
&lt;P&gt;when i click on button2 , only the button2 questions need to display below in the text box. similarly for button 3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and when i click on button 2 , button1 questions need to hide.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how do i achieve this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 08:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913539#M21722</guid>
      <dc:creator>srujanaponnuru</dc:creator>
      <dc:date>2022-04-03T08:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: button show/hide</title>
      <link>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913645#M21724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/50029"&gt;@srujanaponnuru&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I'm going to run through the steps you can follow to&amp;nbsp;achieve your requirements. It works using variables and the container object that allows you to show/hide objects based on conditions. The good thing about this is that your questions occupy the same space in your app which saves space on the canvas:&lt;/P&gt;
&lt;P&gt;1: Create 3 variables in the variables viewer (vButton1, vButton2, vButton3) and assign them the value of zero as numeric (&lt;STRONG&gt;0&lt;/STRONG&gt;) for FALSE.&lt;/P&gt;
&lt;P&gt;2: Add the first button to your sheet and name it.&lt;/P&gt;
&lt;P&gt;3: In the "Actions and navigation" property choose the action "Set variable value" and choose the first variable (vButton1)&lt;/P&gt;
&lt;P&gt;4: In the "Value" section, open the &lt;EM&gt;fx&lt;/EM&gt; and add &lt;STRONG&gt;=NOT(vButton1&lt;/STRONG&gt;) (This will change the variable value from &lt;STRONG&gt;0 &lt;/STRONG&gt;to&lt;STRONG&gt; -1&lt;/STRONG&gt; and back again each time it is pushed)&lt;/P&gt;
&lt;P&gt;5: Add two more "Set variable value" for vButton2 and vButton3 and the values for these are set to &lt;STRONG&gt;0 &lt;/STRONG&gt;(zero). This hard codes button 2 and button 3 back to&amp;nbsp;&lt;STRONG&gt;0&lt;/STRONG&gt; and hides them as per your requirement.&lt;/P&gt;
&lt;P&gt;6: Copy and paste the button so you don't need to go through this again. Change the names for button 2 and 3. Change around the logic so pushing button 2 will assign vButton2 to &lt;STRONG&gt;=NOT(vButton2)&lt;/STRONG&gt; and hard code vButton1 to &lt;STRONG&gt;0&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;7: Do the same for button 3. (Setting vButton1 and vButton2 to &lt;STRONG&gt;0&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;8: Add a container object to your canvas and take your 3 question text boxes and put them in the container. The container allows for show/hide based on conditions. This is where you can set your variable values to TRUE/FALSE based the button pushed.&lt;/P&gt;
&lt;P&gt;9: In the properties of the container object on question 1 add: &lt;STRONG&gt;=vButton1 = -1.&lt;/STRONG&gt; Repeat for questions 2 and 3 with vButton2 and vButton3&lt;/P&gt;
&lt;P&gt;The result will be like below example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anthonyj_0-1649048592020.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76079i146D7B904F65FC5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anthonyj_0-1649048592020.png" alt="anthonyj_0-1649048592020.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anthonyj_1-1649048622757.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76080iEE61069E22B51FDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anthonyj_1-1649048622757.png" alt="anthonyj_1-1649048622757.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 05:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913645#M21724</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-04-04T05:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: button show/hide</title>
      <link>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913648#M21725</link>
      <description>&lt;P&gt;Thank you Anthony. It worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 05:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/button-show-hide/m-p/1913648#M21725</guid>
      <dc:creator>srujanaponnuru</dc:creator>
      <dc:date>2022-04-04T05:25:34Z</dc:date>
    </item>
  </channel>
</rss>

