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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

On off Button

I have a 'last 12 months' button.

Action : Select in Field

Field:    =VDateField

Search String: =v12 months

While this works there is no way to toggle it off. What action would I need to add in order to be able to turn this button off ?

Thanks

3 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

You mean to disable the button? Or do you mean to undo the selection.

The first can be done using Properties->General->Enable Condition.

The second one using the clear field icon in the title bar of the listbox.

Peter

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or for the second type of "turn this button off", create another button (call it undo) with an Action called "Clear Field".

Not applicable
Author


if you need to toggle to the string, I usually use if statement, some version of (you may need to tweak to get the variable to reference correctly):

if($(VDateField)='v12 months','','v12 months')