Expand my Community achievements bar.

Statement Help

Avatar

Level 7

  I try to make a script using the Item choice from a DDList.

how I can make it  to work?

Thanks

if DisplayItem(vChoice)="ON";

{

form1.Page1.HST.rawValue=0.13* form1.Page1.Table1.Row4.Subtotal.rawValue;

}

3 Replies

Avatar

Former Community Member

Hi mmgiath,

use == instead of =

Let me know if it helps.

Thanks,

VJ

Avatar

Level 7

I have this script on calculate event for a DDList but does not work!

What I am doing wrong

Thanks

if DisplayItem(vChoice)=="ON";

{

form1.Page1.HST.rawValue=0.13* form1.Page1.Table1.Row4.Subtotal.rawValue;

}

else

{

form1.Page1.HST.rawValue="";

}

Avatar

Level 10

The line: if DisplayItem(vChoice)=="ON";

should be: if (DisplayItem(vChoice)=="ON")

And I'm not sure what this is trying to do (looks like an unfinished equation) but there should be a semicolon at the end:

form1.Page1.HST.rawValue=0.13*