Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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!