Reference one field for 2 scripts
i using livecycle designer es 8.2.
is possible reference 1 field 2 scripts?
i working on order form. there many different types of items different pricing , clothing sizes each.
i want use description field bring item number , fill ddlist appropriate sizes description.
it this:
item # description size price
thanks
dawne
hi dawne,
i not sure after. attached has code on description drop-down exit event capture item selected list. populates other fields based upon selection.
// form1.page1.description::exit - (javascript, client)
var description = this.rawvalue;
switch (description) {
case "small trousers":
form1.page1.itemnumber.rawvalue = "000001";
form1.page1.size.rawvalue = "28-32";
form1.page1.price.rawvalue = 45.99;
break;
case "medium trousers":
form1.page1.itemnumber.rawvalue = "000002";
form1.page1.size.rawvalue = "33-38";
form1.page1.price.rawvalue = 47.99;
break;
case "large trousers":
form1.page1.itemnumber.rawvalue = "000003";
form1.page1.size.rawvalue = "39-48";
form1.page1.price.rawvalue = 49.99;
break;
default:
break;
}
steve
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment