<?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 list box - how to force to choose only one value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148349#M26669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alexandra,&lt;/P&gt;&lt;P&gt;Select a value in the list box &amp;amp; then go in Properties - &amp;gt; General Tab , there is a property "AtLeast one selected value" check that, which will force user to select at least one value at a time.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amar&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2009 18:26:42 GMT</pubDate>
    <dc:creator>amars</dc:creator>
    <dc:date>2009-07-02T18:26:42Z</dc:date>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148348#M26668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a list box with a set of values, and I want to force the user to choose only one at a time, not as many as he wants, how can I do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alexandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 18:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148348#M26668</guid>
      <dc:creator />
      <dc:date>2009-07-02T18:10:51Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148349#M26669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alexandra,&lt;/P&gt;&lt;P&gt;Select a value in the list box &amp;amp; then go in Properties - &amp;gt; General Tab , there is a property "AtLeast one selected value" check that, which will force user to select at least one value at a time.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amar&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 18:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148349#M26669</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2009-07-02T18:26:42Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148350#M26670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply Amar, but I don't want to force the user to select at least one value, he can choose no value at all, I just don't want him to choose more than one. And that option is greyed out...&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3223.QV.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3223.QV.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 19:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148350#M26670</guid>
      <dc:creator />
      <dc:date>2009-07-02T19:46:19Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148351#M26671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Box is selectible if you have selected &lt;STRONG&gt;only one&lt;/STRONG&gt; value from the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 19:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148351#M26671</guid>
      <dc:creator>andrus</dc:creator>
      <dc:date>2009-07-02T19:51:54Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148352#M26672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi andrus,&lt;/P&gt;&lt;P&gt;See, I have only one value selected from the list and still the option is greyed out...&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8004.qv2.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8004.qv2.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 20:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148352#M26672</guid>
      <dc:creator />
      <dc:date>2009-07-02T20:03:31Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148353#M26673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Seems, that parameter doesn't work for expressions, but only for "regular" fields:-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 20:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148353#M26673</guid>
      <dc:creator>andrus</dc:creator>
      <dc:date>2009-07-02T20:18:06Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148354#M26674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh.... that's probably it... I'm not sure I can do it without being an expression though...&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 20:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148354#M26674</guid>
      <dc:creator />
      <dc:date>2009-07-02T20:41:03Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148355#M26675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;But maybe you can add this expression into your loading script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 20:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148355#M26675</guid>
      <dc:creator>andrus</dc:creator>
      <dc:date>2009-07-02T20:46:58Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148356#M26676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use "Always One..." in a calculated list box, but you can apply it to the underlying field, the one that you use in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 23:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148356#M26676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-02T23:31:09Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148357#M26677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want either 0 or 1 value to be selected, but never more than one? Here's an example of using a macro to do it. If more than one value is selected, it immediately deselects all but the first selected value. There might be a better way than using a macro, and for this specific case, there's probably a simpler macro (this was adapted from a macro to allow 1 to 5 values to be selected).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 03:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148357#M26677</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-03T03:01:49Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148358#M26678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using QlikView 9, it can be done with an Action. I still haven't decided if Actions are inherently easier than Macros.&lt;/P&gt;&lt;P&gt;On your field, set up an OnSelect Action. Choose Select in a Field. Choose your Field. And for the Select, use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=SubField(GetFieldSelections(Field), ',', 1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You could modify the Subfield function to choose a value other than the first. Replace the 1 with GetSelectedCount(Field) and you should get the last item selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 03:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148358#M26678</guid>
      <dc:creator />
      <dc:date>2009-07-03T03:21:42Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148359#M26679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nMiller,&lt;/P&gt;&lt;P&gt;I searched the Community and found your excellent solution to prevent users from selecting more than one single value from a listbox. It helped me a lot but I have (at least) one more issue to deal with: The field to be restricted exists on several other sheets but the restriction should just be valid for one singe sheet. I haved tried the following expression (the fieldname is "Make"):&lt;/P&gt;&lt;P&gt;=If(GetActiveSheetID()='Document\SH02',SubField(GetFieldSelections(Make), ',', 1),GetFieldSelections(Make))&lt;/P&gt;&lt;P&gt;But it only works on sheet SH02. On all other sheets, more than one selected value (which should be allowed) returns NULL.&lt;/P&gt;&lt;P&gt;I hope that you - or some other QV-Guru - can give me a good advise how to do!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 00:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148359#M26679</guid>
      <dc:creator />
      <dc:date>2009-07-31T00:30:29Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148360#M26680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, let me make sure I have this straight. On one sheet, you only want the user to be able to select one value (or none), but any other sheet, they can select multiple. What happens if the user selects multiple and then goes back to look at the Select One sheet?&lt;/P&gt;&lt;P&gt;One option may be to load the field in twice. One name it field_name and the other field_name_select1. On your Select One sheet, add field_name_select1 with the one select trigger. Then on your other sheets, use the normal one. In this case, multiple selections made on another sheet will affect the Select One sheet.&lt;/P&gt;&lt;P&gt;If you don't want multiple selections on the other sheets to affect the Select One sheet, then you'd probably need two separate datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 01:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148360#M26680</guid>
      <dc:creator />
      <dc:date>2009-07-31T01:48:44Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148361#M26681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for quick response. I think i'll load the field twice. I've done so in similar situations.&lt;/P&gt;&lt;P&gt;But - seen from a newbee's horizon - I thought that the "Else" option in my If-statement was a great idea! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 02:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148361#M26681</guid>
      <dc:creator />
      <dc:date>2009-07-31T02:16:22Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148362#M26682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you said that the expression didn't work, I kind of ignored it. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt; I believe the problem is that GetFieldSelections returns a comma-separated list, but QlikView will not Select all values in a comma-separated list (it doesn't work using .Select in a macro either). It was a good idea, I wish it did work like that. Instead, we have to use ToggleSelect to select additional values (ToggleSelect is like keep the current selection and select).&lt;/P&gt;&lt;P&gt;I wonder if there is a way to handle this in a Trigger without double loading the field. I think it would be pretty easy in a macro, because you could do the conditional before doing the select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 02:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148362#M26682</guid>
      <dc:creator />
      <dc:date>2009-07-31T02:55:43Z</dc:date>
    </item>
    <item>
      <title>list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148363#M26683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Do you have the exact solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 14:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/148363#M26683</guid>
      <dc:creator />
      <dc:date>2011-08-08T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: list box - how to force to choose only one value</title>
      <link>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/1627899#M446220</link>
      <description>&lt;P&gt;hi soltuons works fine without ctrl+shift button at a time,&lt;/P&gt;&lt;P&gt;but if we select&amp;nbsp;ctrl+shift button&amp;nbsp; and all the values it select more then one value&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 23:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-box-how-to-force-to-choose-only-one-value/m-p/1627899#M446220</guid>
      <dc:creator>sanjeeva_279</dc:creator>
      <dc:date>2019-09-24T23:54:32Z</dc:date>
    </item>
  </channel>
</rss>

