Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Default selection Listbox Field

Hi i have a field with the following values

0-claim

1-sold

2-return

what i would like to do is have this field in a listbox with the values 0 and 2 selected as default.

i have tried to do this with a trigger and the following code however without luck.

Search string ='0-claim', '2-return'

Best,

Bradley

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try as search string: ='("0-claim"|"2-return")'. The individual values are enclosed in double quotes and separated by a pipe '|' symbol. The set of values is enclosed in parentheses. The complete string is enclosed in single quotes.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try as search string: ='("0-claim"|"2-return")'. The individual values are enclosed in double quotes and separated by a pipe '|' symbol. The set of values is enclosed in parentheses. The complete string is enclosed in single quotes.


talk is cheap, supply exceeds demand
mphekin12
Specialist
Specialist

Try adding the follow two actions to your trigger:

     - Select in Field; Search String = 0-claim; Field = your field name

     - Toggle Select; Search String = 2-return; Field = your field name