Expand my Community achievements bar.

Problem with my Scripts

Avatar

Level 4

Hi All,

I am working on a form that has lots of drop down listbox, and when selected passing a value that are added. However, if a value of less than 3 is selected in any of the drop down then the overall total should be Not Met.  I wrote the following script, and the addition part works perfectly, but the issue is with when less than 3 is selected from the drop down.

Here is my script:

if

((Page1.TotalHold1.rawValue !==null && Page1.TotalHold1.rawValue < 3) ||(Page1.TotalHold2.rawValue !==null && Page1.TotalHold2.rawValue < 3) ||(Page1.TotalHold1.rawValue !==null && Page1.TotalHold3.rawValue < 3)){

numtotal1a.rawValue

= ((Page1.TotalHold1.rawValue * 0) + (Page1.TotalHold2.rawValue * 0) + (Page1.TotalHold3.rawValue * 0));

RatingEqui5.rawValue

="Not Met";

//raterec1.rawValue = numtotal1a.rawValue;

//rrout1.rawValue = 0;

//rrsuccess1.rawValue = 0;

//Page1.rrun1.rawValue = 1;

//Page1.RatingEqui5.rawValue= "Not Met";

}

if

((Page1.TotalHold1.rawValue !==null && Page1.TotalHold1.rawValue >= 3) ||(Page1.TotalHold2.rawValue !==null && Page1.TotalHold2.rawValue >= 3) ||(Page1.TotalHold1.rawValue !==null && Page1.TotalHold3.rawValue >= 3)){

numtotal1a.rawValue

= Page1.TotalHold1.rawValue + Page1.TotalHold2.rawValue + Page1.TotalHold3.rawValue;

}

I do not know why it is not working, please can someone help me out.

Thanks

Lucpian

3 Replies

Avatar

Level 4

Hi All,

I would like to upload the form to share with the forum, but How do I upload it?

Thanks

v/r

Lucpian

Avatar

Level 10

Hi,

You can post files directly to the forums. However you can upload your form to a file sharing site, like Acrobat.com, publish it and then post the published URL here:

Acrobat.com publish.png

Niall