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

Trigger to select a value on Clear

Hi,

Is it possible to create a trigger that selects a value in a field when the clear button is pressed?

Thanks!

3 Replies
Not applicable

Hi Ash,

Yes you can create.

Step1: Create a Button

Step2: Go to actions Tab Click on Add and select clear all

Step3: Now, Create another Action and this time select "Select in Field" and give default value in search string.

once done, when click on the created button it will clear and selects the field which you specified.

Hope this helps.

m_woolf
Master II
Master II

When I search the forum for Trigger on Clear, I find:

http://community.qlik.com/message/42253#42253

Gysbert_Wassenaar

Yes, you can use the OnAnySelect trigger and add a Select in Field action. Use an if statement to

check the length of the string getcurrentselections() returns. If the length is zero than all fields were cleared and you want to select a value. Something like if(len(getcurrentselections())=0, 'MyValue')


talk is cheap, supply exceeds demand