Expand my Community achievements bar.

SOLVED

Problem with the caption.value.#text

Avatar

Level 1
I'm doing my first steps in the FormCalc language to create PDF forms to be distributed, and what I do here is try to change the caption text of a text field on the basis of a decision made previously by a drop-down field in the small script I tried to write it as follows:

var text = Choose (Elenco1.rawValue, "Request Number", "Number required")

if (Elenco1.rawValue == 1) then
      $. caption.value. text.value # text =
      $. RawValue Num2Date = (Date (), "YY / MDD_IHS)
  elseif (Elenco1.rawValue == 2) then
      $. RawValue Num2Date = (Date (), "YY / MDD_UNI)
endif

but fails in the first line. What is wrong?
Ascolta
Trascrizione fonetica
1 Accepted Solution

Avatar

Correct answer by
Level 10

You can change the TextField1 caption at runtime using below syntax.

$.resolveNode("TextField1.caption.value.#text").value = "New Caption";

Thanks

Srini

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

You can change the TextField1 caption at runtime using below syntax.

$.resolveNode("TextField1.caption.value.#text").value = "New Caption";

Thanks

Srini

Avatar

Level 1

With the recommended indications are unable to resolve the problem.


Thanks

Avatar

Level 10

Do you still have issue or is it resolved??

If it is not resolved, send the fomr to LiveCycle9@gmail.com, so I can have a look at it..

Thanks

Srini

Avatar

Level 1

Yes,

the problem resolved, thank you for collaboration.

-


Messaggio originale----

Da: forums@adobe.com

Data: 21-dic-2010 16.56

A: "Enrico Astegiano"<enrico.astegiano@alice.it>

Ogg: Problem with the caption.value.#text

Do you still have issue or is it resolved??

If it is not resolved, send the fomr to mailto:LiveCycle9@gmail.com, so I can have a look at it..

Thanks

Srini