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

Change the caption of a TextField with JavaScript

Avatar

29-07-2008

Hi,



I'm working on an multi language form with the Livecycle Designer 8.2.



My form includes a couple of Text fields with captions in English. I've implemented a button to change the language of the captions into French through a "click" JavaScript Event.



But I'm still not able to perform the caption language change with my code:



Myform.multilang.bt_english::click - (JavaScript, client)

[...]

xfa.resolveNode("tf_site.caption.value.#text").value = "French Caption";

[...]



Has there anybody an hint for me?

Replies

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

05-02-2018

A bit late, but might help someone.

In Javascript use

myObject.caption.value.text.value = "New Caption Name";