Hi,
The setItems() method can take a csv list of display items or display item / value item pairs so if you wanted the rawValue of DropDownList2 to be the numbers from 1 to 14 you could use he following code;
if ( xfa.event.change == 15010 ) then
xfa.host.resetData(DropDownList2)
DropDownList2.setItems("22500,1,22501,2,22503,3,22506,4,22508,5,225010,6", 2)
elseif ( xfa.event.change == 15011 ) then
xfa.host.resetData(DropDownList2)
DropDownList2.setItems("22500,7,22502,8,22504,9,22507,10,22509,11,225011,12", 2)
elseif ( xfa.event.change == 15012 ) then
xfa.host.resetData(DropDownList2)
DropDownList2.setItems("22500,13,22505,14", 2)
endif
Is that what you were after?
Regards
Bruce