Change the caption of a TextField with JavaScript | Community
Skip to main content
Jul 29, 2008 11:33 AM UTC

Change the caption of a TextField with JavaScript

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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

MinusZero
Level 8
Feb 6, 2018 1:16 AM UTC

A bit late, but might help someone.

In Javascript use

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

Translate
Jul 29, 2008 3:25 PM UTC
Is you form a dynamic or static PDF? Ensure that it is dynamic.
Translate