Hi,Is there any easy way of passing extra parameters to the function executed by a FormAPI event handler?I've got a pair of radio buttons that let the user select if an image should be included or not. If it's not then the image container will be hidden, if it is then the container is shown.All simple enough but I'm trying to write the function as openly as possible and am trying to avoid being prescriptive about the radio button values. Normally I'd do this by passing two values to the function, one the status the item has been changed to (selected radio button value) and the other the trigger value to hide the fields on. From here it's a simple if A == B hide C, else show C and it doesn't matter if the hide radio button value is '0', 'f', 'hide', etc (provided this value is passed to the script as the trigger value.Anyway, event handlers just take the name of the function to execute and handle passing the item object. Is there any way to pass an additional parameter?Cheers,Mark
var itemType = IWItem.getType();if (itemType == 'select') { var triggerValue = 'true';} else if (itemType == 'radio') { var triggerValue = 1;} else if ... {}if (triggerValue == IWItem.getValue()){ hide;} else { visible;}