Expand my Community achievements bar.

SOLVED

Dropdownlist

Avatar

Level 3

I am new in AdobeLiveCycle Designer. So I have one question?

I have dropdown list with "JA" and "NEIN".

And I want in Textfield to write "CHO" when is "JA" If Nein "Freihandlabor".

Can you help me with code, I am using FormCalc

1 Accepted Solution

Avatar

Correct answer by
Level 8

Select your dropdown with the items JA and NEIN. In the Binding under the Object palette check off Specify Item Values. Assign the Value 'CHO' for 'JA' and so forth.

Assuming your Textfield is named TextField1 enter the following code in the change event of your dropdown:

TextField1.rawValue=this.boundItem(xfa.event.newText);

Kyle

View solution in original post

4 Replies

Avatar

Correct answer by
Level 8

Select your dropdown with the items JA and NEIN. In the Binding under the Object palette check off Specify Item Values. Assign the Value 'CHO' for 'JA' and so forth.

Assuming your Textfield is named TextField1 enter the following code in the change event of your dropdown:

TextField1.rawValue=this.boundItem(xfa.event.newText);

Kyle

Avatar

Level 3

Thank you very much, it works perfect.

Avatar

Level 3

I have one more question.

Now I have NumericField and i want to be calculated

( IF TextField1 is Freihandlabor then is "0", if is "CHO" then NumericField3 = NumericField1 * 3 + 300)

I'v tried with this formula but TextField1 is converting too.

Thank you

Avatar

Level 8

Code looks good to me. Make sure it's in the calculate event of NumericField3 and language is set to FormCalc.

Kyle