Can one assign a numerical value to a variable?
hi all,
good afternoon,
i working on form has strings values in 2 different listboxes, , depending on selected message pops up. here script wrote, not seem work right
var a=aklaclistbox.rawvalue=="ssk"; var b=bzlaslistbox.rawvalue=="sgt"; a.value=1; b.value=2; if(a > b){ xfa.host.messagebox("you cannot select lower officer rating officer"); } it not work, , wondering if there way can around can compare values. need on forum.
thanks
v/r
tammy
you've got coding errors , watch out capitalization (rawvalue not rawvalue).
the following won't work far know i'm not best javascript programmer around:
var a=aklaclistbox.rawvalue=="ssk";
var b=bzlaslistbox.rawvalue=="sgt";
"value" used global variables, these = 1, etc.
a.value=1;
b.value=2;
i think trying assign values items in list box using binding tab on object palette. ssk equal 1, sgt equal 2, etc.
then compare of 2 values:
if (klaclistbox.rawvalue > zlaslistbox.rawvalue) {
xfa.host.messagebox("you cannot select lower officer rating officer");
}
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment