


Hi,
I have a table:
I currently have the following script in "change"
if (Biker > Sales) {
this.rawValue = Accept;
}
else
this.rawValue == Reject ;
}
Thank you in advance for any help.
Views
Replies
Sign in to like this content
Total Likes
Is this a LiveCycle Designer form?
Views
Replies
Sign in to like this content
Total Likes
Yes, It is a LiveCycle Form
Views
Replies
Sign in to like this content
Total Likes
Are "Acceopt" and "Reject" variable names or string values?
If string values, you need to place quotation marks around the words.
Views
Replies
Sign in to like this content
Total Likes
[Question moved to the LiveCycle Designer forum]
Views
Replies
Sign in to like this content
Total Likes
Are you using FormCalc or Javascript?
Javascript will need .rawValue (unless it is a variable name you have there).
Formcalc doesnt need semicolons at the end or rawValue.
Views
Replies
Sign in to like this content
Total Likes
Try this:
if (Biker.rawValue >= Sales.rawValue) { //this assumes that your field name is Biker and Sales
// you said greater than or equal to so us >=
this.rawValue = "Accept"; // I assume you mean if Biker is greater than or equal to then // the customer field is to say Accept otherwise reject.
}
else
this.rawValue = "Reject" ;
}
Views
Replies
Sign in to like this content
Total Likes