Hi, I am making a form using livecycle.
I have a section where the user will be entering prices that in the end will be calculated. On one of the prices called discount i have a check box. When the user checks the box i want the value of the price cell to calculate a formula. The formula will be msrp * customerdiscount / 100 (note: msrp is the price of the product and the customerdiscount is the percent discount that the customer gets). Currently i have this formula in the change section located in the checkbox itself and it works to display 1000 if checked.
if (this.rawValue == true) {
discount.rawValue = 1000;
}
else{
discount.rawValue = 0.00;
}
But what i want it to display is the percent discount of the msrp price when checked. So i assumed it would read as follows but doesn't work:
if (this.rawValue == true) {
discount.rawValue = (msrp * customerdiscount / 100);
}
else{
discount.rawValue = 0.00;
}
Furthermore when the checkbox is not selected i want $0.00 to show in the cell, can anyone help me with the above information?
Views
Replies
Total Likes
Figured it out myself, thanks
Still would like to know how to display $0.00 though if the box is not check.
What i was doing was not adding .rawvalue to the msrp and customerdiscount in the formula.
Views
Replies
Total Likes
Hi Choman33,
This forum is for LiveCycle Collaboration Service questions.
You might want to ask folks on this forum to get help with your question(s):
http://forums.adobe.com/community/livecycle/livecycle_es/forms_es
Good luck!
Julien
LCCS Quality Engineering
Views
Replies
Total Likes