These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Change Text

RalfS
Registered: Jun 21 2011
Posts: 2

Hi!
 
Changing the selected option should change the value auf Text13 (Text, not a Textfield)
 
The default value of Text13 is for example "xxxxxxx".
 
The following works:
Formular1.#subform[0]::ready:form - (FormCalc, client)
Formular1.subf5.Text13.rawValue = "mm"
-> The new value of Text13 is "mm".
 
This doesn't work:
Formular1.#subform[0].Table1.Row5[7].#subform[0].OptionList::change - (FormCalc, client)
Formular1.subf5.Text13.rawValue = "mm"
-> The value of Text13 is still "xxxxxxx".
 
How can I change Text13?
 
Thanks in advance.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

to change the value of a text use:
  1. Formular1.#subform[0].Table1.Row5[7].#subform[0].OptionList::change - (FormCalc, client)
  2. Formular1.subf5.Text13.value.text.value = xfa.event.newText

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

SLDC
Registered: Oct 25 2010
Posts: 70
Radzmar,
This doesn't work for me - nothing happens. Also, can this be done in JavaScript as opposed to FormCalc?
RalfS
Registered: Jun 21 2011
Posts: 2
This doesn't work for me too.

After:
Formular1.#subform[0].Tabelle1.Zeile5[7].#subform[0].Optionsfeldliste::change - (FormCalc, client)
Formular1.subf5.Text13.rawValue = "mm"
Formular1.#subform[0].Tabelle1.Zeile5[1].Comp = Formular1.subf5.Text13.value.#text.value

The TextFIELD(Comp) shows "mm" but the page still shows "xxxxxxx" (TEXT13)

padobe
Registered: Jun 29 2011
Posts: 10
Please try Text(Text name)on the change event of OptionField

Text.rawValue = "mm"; in JvavScript its working fine for me.
SLDC
Registered: Oct 25 2010
Posts: 70
Padobe,
How is this different from RalfS has shown before?
What do you mean by Text(Text name)?