Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Text Field If Statement...

Avatar

Level 2

Dear Adobe Forum members,

1. First of all I apologize for my English 'cos I am a Hungarian user and my language knowledgment is not the best..and nor with the program languages...

2. I know you have learned for years with program languages (Java script, Form Calc, etc..), so I would like to pay for your sevices if you reply to my problem and you can give me the right solution and it works...(I don't know if I can announce it here about the payment...?)

3. Here is my question:

I have a:

Text field (Text_01): Full Name

Check box (CheckBox_01): Yes/No (default value: unchecked)

Number field (Total_01): a fixed number (amount eg: $25) (default value is empty)

I need the help with this form:

If I enter a name (or focus on the text field), the check box need to be selected (checked) and the numeric field get the value (eg. $25) but when I delete the text field (or lose focus) ,the check box need to turn unselected (unchecked) and the numeric field get a value zero or empty again...

I have tried several option but my knowledgment is not enough to resolve this problem...:(

I use Live Cycle....

Thank you your interest en advance...and wish the best to you

Nyari Zoltan

1 Accepted Solution

Avatar

Correct answer by
Level 10

Just post your query on the forum .....there are many talented people on this forum who can help you out.

Paul

View solution in original post

3 Replies

Avatar

Level 10

There is no need for payment as this is a simple issue.

On the exit event of the FullName field you would put cod like this (Javascript):

if (this.rawValue != null){

     CheckBox_01.rawValue = "Yes";

     Total_01.rawValue = 25;

} else {

     CheckBox_01.rawValue = "No";

     Total_01.rawValue = 0;

}

Hope that helps

paul

Avatar

Level 2

Dear Paul,

Very nice from you, it works, thank you very much..It helps me a lot...and I have learnt a lot through this sample..

May I use your services if I will have another one(s)?

Avatar

Correct answer by
Level 10

Just post your query on the forum .....there are many talented people on this forum who can help you out.

Paul