<?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 set a variable upon field selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-a-variable-upon-field-selection/m-p/2549798#M110316</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I got a field named MOVEMENT&lt;BR /&gt;it has the following values:&lt;BR /&gt;HC&lt;BR /&gt;ATTR&lt;BR /&gt;RECRUT&lt;BR /&gt;ATTR_RATE&lt;BR /&gt;RECRUT_RATE&lt;BR /&gt;&lt;BR /&gt;I have a variable named vL.ToggleSelection&lt;BR /&gt;i want that if the user selects HC,RECRUT, or ATTR to set the variable vL.ToggleSelection to 1 otherwise set it to 2&lt;BR /&gt;&lt;BR /&gt;how can I trigger field selection to set a variable?&lt;/P&gt;</description>
    <pubDate>Mon, 25 May 2026 12:42:07 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2026-05-25T12:42:07Z</dc:date>
    <item>
      <title>set a variable upon field selection</title>
      <link>https://community.qlik.com/t5/App-Development/set-a-variable-upon-field-selection/m-p/2549798#M110316</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I got a field named MOVEMENT&lt;BR /&gt;it has the following values:&lt;BR /&gt;HC&lt;BR /&gt;ATTR&lt;BR /&gt;RECRUT&lt;BR /&gt;ATTR_RATE&lt;BR /&gt;RECRUT_RATE&lt;BR /&gt;&lt;BR /&gt;I have a variable named vL.ToggleSelection&lt;BR /&gt;i want that if the user selects HC,RECRUT, or ATTR to set the variable vL.ToggleSelection to 1 otherwise set it to 2&lt;BR /&gt;&lt;BR /&gt;how can I trigger field selection to set a variable?&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2026 12:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-a-variable-upon-field-selection/m-p/2549798#M110316</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2026-05-25T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: set a variable upon field selection</title>
      <link>https://community.qlik.com/t5/App-Development/set-a-variable-upon-field-selection/m-p/2549821#M110317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;&amp;nbsp;here an option for starting:&lt;/P&gt;&lt;P&gt;first create the variable ths way&amp;nbsp; :&lt;/P&gt;&lt;P&gt;=if(wildmatch(MOVEMENT,'HC', 'RECRUT', 'ATTR') &amp;gt; 0, 1, 2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_6-1779726217401.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188517i0442304C26F2FC5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_6-1779726217401.png" alt="QFabian_6-1779726217401.png" /&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;And then you can test it , i tested in a text box :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_5-1779726118304.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188516i4ED09099CB2A7B00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_5-1779726118304.png" alt="QFabian_5-1779726118304.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="QFabian_2-1779726058835.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188513i6B6E778326DF1750/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_2-1779726058835.png" alt="QFabian_2-1779726058835.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_3-1779726080918.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188514i63CC42260B408524/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_3-1779726080918.png" alt="QFabian_3-1779726080918.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="QFabian_7-1779726279787.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188518iD3C7BBBE99E27878/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_7-1779726279787.png" alt="QFabian_7-1779726279787.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the functions related to match to test&amp;nbsp; them:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/es-ES/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/match.htm" target="_blank"&gt;https://help.qlik.com/es-ES/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/match.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2026 16:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-a-variable-upon-field-selection/m-p/2549821#M110317</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2026-05-25T16:26:30Z</dc:date>
    </item>
  </channel>
</rss>

