Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
wnorwood
Contributor III
Contributor III

Conditionally set field in clear action

Hello,

I have a text box with two conditional actions.

The first action (Select in Field) selects a value in the [My Tickets] field if there is currently no selection which works great. The search string is: if(GetSelectedCount([My Tickets])=0,vUserID)

The second action (Clear Field) is supposed to clear the [My Tickets] field if there is a selection. This is NOT working.  It clears ALL selections, not just the My Tickets one. The field in the action is set to:  if(GetSelectedCount([My Tickets])=1,'[My Tickets]')

Note that the selection is either none or one.

Is there a way to get the "field" to recognize the one field conditionally?

Thanks.

10 Replies
wnorwood
Contributor III
Contributor III
Author

Thanks so much for attaching your application.  At least I can see that it should work.  I even copied your text boxes into my app in case I was doing something strange.  But, I still have the same issue.  It must have something to do with the model design which is quite involved.

Thanks again for your help.