Compare multiple drop-down list selections then display message


drop-down list

 

hello, building dynamic form in livecycle designer; looking ideas on how compare multiple drop-down list selections.

 

i have 1 table 28 rows each row has different question , dropdown menu. dropdown menus same listing a, b, c, d, e, f , g.

 

my issue want compare selections , populate either message box, check box or radio selection based on following criteria.

 

if a’s selected show message/select 1

if a’s , b’s selected show message/select 2

if combination of a’s, b’s, c’s, d’s, e’s, f’s , g’s show message/select 3

 

note: each row not required answered

 

any appreciated.

 

try this:

var alist=[]; (var a=0;a<table1._row.count;a++){//your dynamic row location  mydd = table1.row.all.item(a).dropdownlist1;//drop down location  if (!mydd.isnull && alist.indexof(mydd.rawvalue)==-1)   alist.push(mydd.rawvalue); } if (alist.length==1 && alist.indexof("a")!=-1)  xfa.host.messagebox("only as!"); if (alist.length==2 && alist.indexof("a")!=-1 && alist.indexof("b")!=-1)  xfa.host.messagebox("only , bs!"); if (alist.length==7)  xfa.host.messagebox("all letters have been selected!"); 

 

 

kyle



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account