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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

beginners Problem with textfield

jm29468764
Level 2
Level 2

In the following pdf I have made (as in the video) one field with a dropdownlist and a second field with a textfield.

as in the video I wrote the syntax to the textfield (of course in javascript). When changing the values from the Dropdown the same value should be shown in the textfield - but nothing ist happening.

I can't finde any mistake ???

1 Accepted Solution
alassir
Correct answer by
Level 2
Level 2

Hi jm29468764,

"this.rawValue" in the switch-Section cannot work (i guess...), as the value of the adressed field (Textfeld1) is always empty - so no switch is triggered.

If possible (I use ES 4) use the (in german) "Aktionsgenerator" (action Generator) to perform this task. I've done this and this code shows up:

//Formular1.#subform[0].DropdownListe1::change - (JavaScript, client)

this.resolveNode("Textfeld1").rawValue = $.boundItem(xfa.event.newText);

Hope this helps.

Regadrs

Dietmar

View solution in original post

3 Replies
jm29468764
Level 2
Level 2

Sorry, I can nothing find to make an upload,  so I show here the syntax:

Syntax.JPGdropdownliste.JPGTextfeld.JPG

alassir
Correct answer by
Level 2
Level 2

Hi jm29468764,

"this.rawValue" in the switch-Section cannot work (i guess...), as the value of the adressed field (Textfeld1) is always empty - so no switch is triggered.

If possible (I use ES 4) use the (in german) "Aktionsgenerator" (action Generator) to perform this task. I've done this and this code shows up:

//Formular1.#subform[0].DropdownListe1::change - (JavaScript, client)

this.resolveNode("Textfeld1").rawValue = $.boundItem(xfa.event.newText);

Hope this helps.

Regadrs

Dietmar

View solution in original post

jm29468764
Level 2
Level 2

alassir, thank you, you helped me!!

regards

jm29468764