Previous | Next | (P-PDF) Forms & FDF
Topic: Re: Combining two fields (Via Email)
Conf: (P-PDF) Forms & FDF, Msg: 27822
From: darrenla
Date: 10/1/2001 04:17 AM
George,
Thanks that is a good idea. I tried putting the folloing script into the
"calculate" area of the full name field
var fname = this.getField("First");
var lname = this.getField("Last");
var full = fname.value + " " + lname.value;
event.value = full.value;
However, this made the "full" field say "undefined". It just had the word
"undefined" where the full name should have appeard. I tested this out
doing acutally calculations and it works great! But with Strings it won't
combine the fields.
Is there something I could change in my script? Is there some other way I
could go about this?
Thanks again,
Darren Labrum
----- Original Message -----
From: "p-pdf-forms Listmanager"
To:
Sent: Saturday, September 29, 2001 10:29 PM
Subject: Re: Combining two fields
> From: "George"
>
> --- Planet PDF Forum | http://forum.planetpdf.com ----
>
> > How should I go about doing this? What kind of
> > script should I use on the "FullName" field in order
> > to accomplish this task?
>
> How about setting up a Calculate script for the full name field. It would
get the values of the first name and last name fields and combine them, and
then assign the value to "event.value".
>
> George
>
> ------- Planet PDF Store's Top 10 List for August ---------
>
> ARTS Split & Merge Wizard - PDF Converter - StampPDF
> Jaws PDF Creator - Gemini - Crackerjack - BCL Drake - Batch-Print
> PreFlight2000 Color Chameleon - ARTS PDF Workshop
>
> Find out why these were the best-selling products last
> month. Free demos of each at the Planet PDF Store!
> http://www.pdfstore.com/
>
> ----- Powered by BinaryThing.com & www.PlanetPDF.com ------
>
>