Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
k_burata
Creator
Creator

Problem with GetSelectedCount

Hi all,

I added a Field Event Trigger to count the items selected in a list box and then based on this toggle the flag variable.

It should make the value = 0 whenever I select more than 1 item on the list box as well as when I make no selection.

Works fine when I select one or more item on the list box but when I cancel the selection by clicking on the item my IF statement won't work.

Here's my IF statement:

=if(GetSelectedCount([Currency Code]) <> 1, 0, vToggle )

Thanks.

1 Solution

Accepted Solutions
Mark_Little
Luminary
Luminary

HI Kim,

Have you added the same expression in the on change Action?

Mark

View solution in original post

4 Replies
Mark_Little
Luminary
Luminary

HI Kim,

Have you added the same expression in the on change Action?

Mark

sunny_talwar

Would you be able to share a sample where it isn't working?

antoniotiman
Master III
Master III

Hi Kim,

You use Count(DISTINCT [Currency Code])   instead of GetSelectedCount

Regards,

Antonio

k_burata
Creator
Creator
Author

This solved it!

Thanks Mark