Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

List Box default item

I have list box  contains names of countrys.when i selected clear all butoon in the tool bar then list box default item should be "India".

1 Solution

Accepted Solutions
Not applicable
Author

Hi Mahaesh

There is a way to do that. You need a variable with this formula '=getselectedcount(Country)'.

Then you need a trigger on variable change ( Settings -- > Document Propierties --> Triggers )

In this triger you must put: 'if(variable=0,'INDIA',Country)' in select value

Please find an exampel attached.

View solution in original post

3 Replies
datanibbler
Champion
Champion

Hi Mahesh,

if you use the default "Clear all" button in the toolbar, then ALL selections will be cleared - there's no way (I know of) that you can clear all selections and at the same time make a new selection - you need to build a custom button for that that does two things:

a) clear all selections

b) select "India"

HTH

Best regards,

DataNibbler

Not applicable
Author

Hi Mahaesh

There is a way to do that. You need a variable with this formula '=getselectedcount(Country)'.

Then you need a trigger on variable change ( Settings -- > Document Propierties --> Triggers )

In this triger you must put: 'if(variable=0,'INDIA',Country)' in select value

Please find an exampel attached.

Not applicable
Author

Hi,

Can u pls help me for setting  default value for input box.