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

display text in another field

pcpi.uk
Registered: May 12 2010
Posts: 9
Answered

hello. I am not well-versed with javascript or acrobat.

I have a form with text field (total1) and anopther text field (include1). If total1 is empty, i want include 1 to be empty also. if a calculated value is present inside total1, then i want include1 to display the text "success".

I have tried most but am nit successful. Can somebody please help.

Many thanks.

Mike

My Product Information:
Acrobat Pro 9.3.1, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
Was your form created with LiveCycle Designer or Acrobat's Form Tools?

Both products can produce forms, but they use different languages and syntax.

George Kaiser

pcpi.uk
Registered: May 12 2010
Posts: 9
I created the form template using acrobat's form tools, creating the field boxes individually.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Use this code as include1's custom calculation script:
total1 = this.getField("total1").value;if (total1==null || total1=="") {event.value = "";} else event.value = "success";

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

pcpi.uk
Registered: May 12 2010
Posts: 9
Many thanks.
geoffely
Registered: May 13 2010
Posts: 4
I have a form which displays the name of the client in several places. I want to design the form so that I can input the data (the name) in the first field location only, so that the data appears in the other fields but are not part of the tabbing and cannot be modified.

Presently, I can duplicate the field, using the same field name so that the data appears in all the fields but each field is modifiable and they are part of the tabbing. I want only the first field at the top of the form to be modifiable so that the other fields display the same data but cannot be changed and are excluded from the tabbing function.

Is this possible?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Set the other fields to be Read-Only ,or Locked.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

geoffely
Registered: May 13 2010
Posts: 4
I tried locking the other fields and setting them as read only but because they have the same name as the first field all are locked and read only. what I want to accomplish is to put data in the field at the top of the form and have it displayed in the other fields but not be able to modify the other fields later in the form.

Any other suggestions?

thanks