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

Placing caption name into another field as text

PetafromOz
Registered: Jun 8 2009
Posts: 230
Answered

I have a group of checkboxes, and to the right of each is a blank text field eg:

 BRC ________________
 EMS ________________
 QMS ________________
etc...

When any given checkbox is selected, I want the caption text to be inserted into the blank text field. So:

X BRC BRC
 EMS ________________
X QMS EMS

I've tried several things, but none work, eg:

----- form1.#subform[1].TechCBCF.CB[0]::exit: - (JavaScript, client) -------------------------------
TechResultsSF.Result[0].rawValue = this.caption.value;

or...
TechResultsSF.Result[0].rawValue = this.caption.name.value;

and a whole heap of other things, including trying different events.

Can someone please put me on the right track?

from way... underground at Parkes - central West NSW - Australia

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Well, the task is very
unique, but possible.

if (this.rawValue == 1){xfa.resolveNode("Formular1.#subform.Textfeld1").rawValue = this.caption.value.text.value;}else{xfa.resolveNode("Formular1.#subform.Textfeld1").rawValue = null;}

Here an working example
https://share.acrobat.com/adc/document.do?docid=9829c6a5-ead4-46a9-8db2-7a9709630743

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

PetafromOz
Registered: Jun 8 2009
Posts: 230
Brilliant! Thanks again Radzmar

from way... underground at Parkes - central West NSW - Australia