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: 
BarbCline
Contributor III
Contributor III

Field Event Trigger

I have a field event trigger to test the value of a field (OnSelect) and set a variable accordingly.  This works great in most scenarios; however, if I have any other field selected, the clearing of the first field does not fire the trigger.

Here's my expression: =if(GetFieldSelections([Case Size]) = '51-99', 'Y', 'N')

When I select or clear Case Size, the trigger fires and sets the variable appropriately.  But, if I have any other field selected along with Case Size, when I clear Case Size, the trigger never fires.

Any ideas on how to fix this?

1 Solution

Accepted Solutions
Jason_Michaelides
Partner - Master II
Partner - Master II

I think it's because [Case Size] is not actually being selected.  Instead of using a trigger and GetFieldSelections([Case Size]) try just creating a variable with the expression =if(Only([Case Size]) = '51-99', 'Y', 'N')

Hope this helps,

Jason

View solution in original post

2 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

I think it's because [Case Size] is not actually being selected.  Instead of using a trigger and GetFieldSelections([Case Size]) try just creating a variable with the expression =if(Only([Case Size]) = '51-99', 'Y', 'N')

Hope this helps,

Jason

BarbCline
Contributor III
Contributor III
Author

Excellent!  That's works perfectly ... and so easy   Thanks for sharing, Jason!