PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________
We actually make "comb" fields out of regular entry fields with the letter
spacing and word spacing cranked up a bit. I'm pretty sure you don't have
access to those settings through the form tool though, so it's probably not
an option for you.
And we call them combs because that's what they look like:
|_|_|_|_|_|_|_|_|_|
But if you really want to go the 1-letter-per-field route, here's a
suggestion:
Create an invisible field that holds the actual value. We'll call our
example field "Bob".
Each individual letter field is called "Bob_N", where N is a number from *0*
to whatever.
To find the parent field, just parse out everything before the underscore.
To find the character index of the current field, take everything after the
underscore.
And you move all your logic into a seperate function that takes "this" (the
field) as its parameter. Write a similar script to push data from a changed
field to the hidden parent field. And make sure you make this a function
call at the form level. You DO NOT want to have to fix a bug in 50 copies
of a script... just do yourself a favor and make it a function.
The only part I'm not sure about is where to put those function calls.
Calculate scripts can get expensive in a hurry the last time I checked.
Every time any field's value is changed, ALL field values get calculated.
Format scripts don't allow you to change the current field's value, but I
don't know if they'll let you mess with a different field's value or not, so
you might not be able to update the hidden field's value in a keypress
script.
You'll just have to experiment (unless some kind soul can chime in with some
more details).
I'd also recommend setting your submit action up to submit only the hidden
fields, not all the little child fields. Wouldn't be the end of the world
to add all that extra redundant data to your submit's, but it's worth
avoiding if you can.
--Mark Storer
Software Engineer
Cardiff Software
#include <disclaimer>
typdef std::disclaimer<Cardiff> Discard;
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html