Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

Show one value in Text Object, when Multiple selection from List Box

Hi All,

Suppose I have a List Box with values  - A, B, C, D, E.

I have another Text Object, where I have to display a value from a List Box when selected from List Box. - THAT IS WORKING.

But my requirement is - When I select more than one value from List Box, only and any one (from selected) will be displayed in the Text Object.

How to achieve this? Please help!!!

12 Replies
Not applicable

Hi ,

in Text object use

=getFieldSelections(nameofthefield).

Hope this helps

ramoncova06
Specialist III
Specialist III

=subfield(GetFieldSelections(field,'||'),'||',1)

dmohanty
Partner - Specialist
Partner - Specialist
Author

This won't work when we select multiple values.

sujeetsingh
Master III
Master III

Get field selection will work as per your need. You can have a sorting field and apply it to just show the sorted value of multiple selection .

amit_saini
Master III
Master III

Hi ,

Try this:

='Chart'&chr(32)&if(GetSelectedCount(Plant)>0,'- '&GetFieldSelections(Plant))

Thanks,

AS

Not applicable

Hi try


GetFieldSelections(field,',')


or


GetFieldSelections(field,',',n)


where n is any integer denoting how many selected values to display with ','


check out this document

Missing Manual - GetFieldSelections() + Bonus Example


ramoncova06
Specialist III
Specialist III

‌my codes does work, no need to sort or add complex things to it

PrashantSangle

Hi,

Use more simpler

Concat(FieldName,',')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable

use this - it will give you only one value from the list.

SubField(Concat([Fieldname],'@'),'@',1)

Thanks

BKC