Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Help with script Syntax

Avatar

Level 7

Here is the condition FOR THE SCRIPT:

If the validation(Variable-execValidate() is OK)and FieldA.rawValue==2

or

(FieldB.rawValue==1) ||

(FieldC.rawValue==2)||

(DropDownlist.rawValue==1)||

(DropDownlist.rawValue==3) ||

(DropDownlist.rawValue==4)

then

Mail_form.execEvent("click");

_____________________________________________________

I came up with this script but without luck! Please help..

Fields A,B,C are radio buttons

THANK YOU

if (form1.execValidate()

&& (FieldA.rawValue==2||

(FieldB.rawValue==1) ||

(FieldC.rawValue==2)||

(DropDownlist.rawValue==1)||

(DropDownlist.rawValue==3) ||

(DropDownlist.rawValue==4)

)

Mail_HR.execEvent("click");

1 Reply

Avatar

Level 8

You're missing a parenthesis ')' at the end of your if statement.

Kyle