Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

Livecycle Designer - Checkbox Java "If" Statment - Box won't uncheck

$
0
0


Hello,

 

I am writing a simple form with two numeric fields and a checkbox. What I want to happen is when the user selects the CheckBox, the value of the first numeric field (purprice) is copied to the second numeric field (purpriceB). When the box is un-checked, the value in the second numebric field should return to null or 0.

 

Here is my statement. I placed it in the "Click" event of the checkbox (Java):

 

if(this.rawValue=1)

{purpriceB.rawValue=purprice.rawValue}

else if

(this.rawValue=0)

{purpriceB.rawValue=0}

 

The form works right on the first click by coping the 1st value to the 2nd field, but won't allow me t o uncheck the checkbox after it has been checked the first time.


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>