I've discovered that I can use this: if word 1 of the long name of target is "button" then... Is that the way to do it? Seems a bit childish :) There's got to be a "controlType" property, no? Slava