Hi there,
Wondering if someone could help as I am quite new to this. I am currently creating a spec sheet of a new vehicle for the company, what I am trying to achieve is to create a summary page showing all the additional extras that the customer has ticked to add to their vehicle.
A quick example that I have achieved so far:
Wheels [ ]
Side Vents [ ]
Exhaust Tip [ ]
Interior [ ]
You tick all 4 boxes, it will show a summary of:
Wheels
Side Vents
Exhaust Tip
Interior
The summary section is achieved by following script:
event.value = this.getField("Text308").value + "\n" + this.getField("Text309").value + "\n" + this.getField("Text310").value + "\n" + this.getField("Text311").value;
The problem comes when say the customer only ticked Interior, the summary section will then show:
(empty line)
(empty line)
(empty line)
Interior
How do I get it so that the extras that not ticked are ignored and Interior will come up to the top.
Many thanks in advance.
Kind regards,
Alex
if (this.getField("Text308").isBoxChecked(0)) event.value+=this.getField("Text308").value+"\n";
etc for the other fields.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com