livecycle designer

Avatar

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Ali_Haider_shib
Level 1

Likes

0 likes

Total Posts

52 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Ali_Haider_shib
Level 1

10-03-2015

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 1
Level 1
scottc30727408
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
scottc30727408
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

2 solutions
Top badges earned
Affirm 1
View profile
scottc30727408
Level 1

16-03-2015

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.