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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
didierodayo
Partner - Creator III
Partner - Creator III

always one button selected

Hello,

Just like we are able to set "Always one value selected on the list box object are we able to set the same on the buttons below?

My requirements is that I don't want to display the list box. I want to display the buttons but I want 1 button selected at all time even when the user Clear All selections.

how can this be achieved?

Thanks

6 Replies
Anil_Babu_Samineni

In your case, Which button you want to keep?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
didierodayo
Partner - Creator III
Partner - Creator III
Author

Hi Anil I want D to always be the default if others are not selected.

Thanks

Anil_Babu_Samineni

May be check?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Sergey_Shuklin
Specialist
Specialist

Hi, Didier!

You can do a little trick 😃

Create a list box with enabled "Always One Selected Value" option and hide this object from user using a show condition 1=2 in a Layout tab.

Sergey_Shuklin
Specialist
Specialist

But, if you want a fixed value of field Table you should do the following:

Create a variable vTest and set an expression: =$(vTest)-isnull(GetCurrentSelections())

go to the triggers tab in ctrl+ald+D and set the trigger on change of the variable vTest like select in field Table a search string 'D'.

After that when you'll hit a Clear All button the vTest will change and run the trigger for selection in field.

didierodayo
Partner - Creator III
Partner - Creator III
Author

hi all,

I ended up setting a Clear State after selecting the default button. so now users can make other selection but when they clear all the default selection will be set.

Thanks