Expand my Community achievements bar.

livecycle designer

Avatar

Level 3

Hi,

I have 3 fields, say A,B n C. if A= less than 10 then B n C will be 0. how can i make this coce.

thanks

Ali

1 Reply

Avatar

Level 2

I am kind of an amateur. I have really only been using Livecycle for about a month and a half but this forum has been invaluable so I figured I should contribute back as best I can.

Ok so your issue is that you want Fields B and C to show value 0 if Field a's value is less than 10.

Using javascript use an if command.

place a code similar to the one below on the exit event of field A.

(

if Text.Field.A.rawValue  < 10;

then

Text.FIeld.B.rawValue == 0;

Text.FIeld.B.rawValue == 0;

endif

)

please excuse any scripting mistakes. Normally, if I were writing a code like this, it would take several attempts to get everything just right.  As I said before, I am an amateur but I hope to get you on the right path.