Avatar

Level 2

Based on the selection in one DD list (named "Priority"), we are using the code below to populat another DD list (named "WOresolution14") with specific list items:

form1.Page1.Subform-Page1-Info.Priority::exit - (JavaScript, client)

//Clear out the WOresultion14 DDlist

WOresolution14.rawValue

= "";

WOresolution14.clearItems();

//Set the WOresolution14 DDList based on the value selected in the Priority DDlist

switch

(this.rawValue)

{

case "Critical":

WOresolution14.addItem("Less than 15 min");

WOresolution14.addItem("15-30 min");

WOresolution14.addItem("30min - 1 hr");

WOresolution14.addItem("1-2 hrs");

WOresolution14.addItem("More than 2 hrs");

break;

case "Urgent":

WOresolution14.addItem("Less than 2 hrs");

WOresolution14.addItem("2-3 hrs");

WOresolution14.addItem("3-4 hrs");

WOresolution14.addItem("4-5 hrs");

WOresolution14.addItem("More than 6 hrs");

break;

}

________________________________________

WHAT WE WANT TO DO:

We want to format specific items in the 2nd DD list ("WOresolution") so when that particular item is selected, it appears in bold formatting... or the DD list background turns RED colour.  ONLY when a particular item is selected, not for all items.  This is to provide a visual cue when the item is selected.