Answered
Hi, I have a combo box with the options 'Yes' or 'No' in a list. I need a javascript which changes the fill colour to red or green depending on the answer given. At the moment I have this but can't make it work:
if (event.willCommit)
{
this.getField("test").fillColor = (event.value === "Yes")? color.black:color.red;
this.getField("test").fillColor = (event.value === "No")? color.black:color.green;
}
Any help would be appreciated.
While one is within a field, it is best to use the 'event' object to access that object.
George Kaiser