Help with statement


is wrong statement?

action drop down list

d1  drop down list

forms radio button

budgetedbuttonlist radio button

 

 

 

if ((form1.page1.section_a.employeeinfo.row1.action.rawvalue==1)||

(form1.page1.section_a.employeeinfo.row1.action.rawvalue==3)||

(form1.page1.section_a.employeeinfo.row1.action.rawvalue==4)

 

&& ((form1.page1.section_a.all.d1.rawvalue==2)||(form1.page1.section_a.all.d1.rawvalue==4))

)

{

mail_hr.execevent("click");///email xxx@xxx.org

}

 

else if ((form1.page1.section_a.all.d1.rawvalue==2)||

(form1.page1.section_a.all.d1.rawvalue==4)

&&

((form1.page1.sectionba_top.forms.rawvalue==1) ||

(form1.page1.newposition_sub.empposition.budgetedlist_sub.budgetedbuttonlist.rawvalue==2))

 

)

{

mail_mn.execevent("click");////email www@xxx.org

}

i think brackets little out of whack - not quite in right place couple many. can use programmer's editor notepad++ check matching brackets, etc.

 

try following, you'll have reformat way it's easier see relationships needed:

 

if (           (                form1.page1.section_a.employeeinfo.row1.action.rawvalue == 1                 ||                 form1.page1.section_a.employeeinfo.row1.action.rawvalue == 3                 ||                 form1.page1.section_a.employeeinfo.row1.action.rawvalue == 4           )            &&            (                form1.page1.section_a.all.d1.rawvalue == 2                 ||                form1.page1.section_a.all.d1.rawvalue == 4           ) )  {           mail_hr.execevent("click"); }  else if  (           (                form1.page1.section_a.all.d1.rawvalue == 2                 ||                 form1.page1.section_a.all.d1.rawvalue == 4           )            &&            (                form1.page1.sectionba_top.forms.rawvalue == 1                 ||                 form1.page1.newposition_sub.empposition.budgetedlist_sub.budgetedbutt onlist.rawvalue == 2           ) ) {           mail_mn.execevent("click"); } 


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