Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i want a user should be able to select max of three values from the multibox
Expanding on this, and this is kind of funky, but rather than clearing the field if you select more than three, you can just prevent the change. Change your clear field to be <=3 instead of >3, then add a Back action after.
As long as you've selected 3 or fewer, it clears the field, then does a back, taking you back to your intended selections. If you've selected more than 3, it doesn't clear the field, so when you go back, it removes your most recent selection that took you over the limit.
There's probably a cleaner way to do it, but that's what I thought of.
Have you tried my solutions
I'm not the original poster, but I tried it. You can select as many values as you want. But if you select more than three, then afterwards the list box disappears except for the caption, making it very difficult to make any further changes in selections, such as getting back down to 3 or fewer. You need to do something like clear the field before you can use the list box again.
I didn't understand what you were trying to do with the text object, though, so maybe I've completely misunderstood your suggestion.