Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Same Button to Clear Field Selection

Hi

I have a button that selects excluded.  How do I use the same button to clear the same field selection.

Thank you

Kind regards

Nayan

Button.JPG

1 Solution

Accepted Solutions
tresesco
MVP
MVP

You can put a condition in the search string expression to tell that if the field has already selections, then select null which is equivalent to clear. May be like:

= If(getselectedcount(SOURCE), null(), <Your Expression>)

View solution in original post

3 Replies
tresesco
MVP
MVP

You can put a condition in the search string expression to tell that if the field has already selections, then select null which is equivalent to clear. May be like:

= If(getselectedcount(SOURCE), null(), <Your Expression>)

madhumitha
Creator
Creator

HI Nayan,

For this scenario, I normally create another button with clear functionality. I will also have a variable with Toggle value, which I would be using to show and hide the buttons.

let me know if you need example.

Thanks!

Anonymous
Not applicable
Author

Thank you Tresesco, it worked

Kind regards

Nayan