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

Problem with standard addressing

Sterre
Registered: Jan 29 2008
Posts: 17
Answered

Hello,

I also have a problem with the addressing in my form.

Im making a simple fax-form for a company to send as first page of a fax.

In the form I need to address it to someone as followed
to: mister ....
to: miss ....

In Dutch:
t.a.v. de heer ....
t.a.v. mevrouw ....

The .... has to be typed by the user of the form.

A bit later you have to start the fax form as followed:
Dear mister ....,
Dear miss ....,

In Dutch:
Geachte heer ....,
Geachte mevrouw ....,

The problem is that you can only address in those two ways, so no miss, mam, hey Mike!, Dear Jane Doe, etc.

If I try to use a drop-down box after to/t.a.v. or after Dear/Geachte the problem is that the words aren't of the same length, so the name of the person (textfield) has a too big, or a too small, or a correct white space before it.

This is really ugly, but I don't know another way to solve this problem.
Do you have any ideas?

Thanks a lot in advance!

Sterre

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are a few different solutions to the problem. But the biggest thing you can do is to set the text alignment on the field that hold the "title" or prefix to "Right Aligned".

You could use a drop down, but you could also use radio buttons to select the "prefix". Selecting a prefix would tnen fill out a read only text field next to the name field.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Sterre
Registered: Jan 29 2008
Posts: 17
Thx for your awnser. I already tried the right alignment, but then I have the same sort of problem with the left-alignment: a correct alignment, or too much white space on the left.

I'll try to find out what you mean exactly with the radio buttons. May that will be an option. I kinda get that the selection af the radio button has to invoke the appearance of a text field, but I don't know if you can adjust the field to expand to fit, so that I dont have a problem with the spacing in between.

Do you also have an idea for my other problem?
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=13125

Grtz

Sterre
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Radio Buttons are very popular on forms for selecting between titles like Mr, Mrs, Miss, Dr. etc. They are usually used by themselves. You can however, use the mouse down action to set the appropriate text in a field next to the persons name to make it look nice.

Just place a text field (named "Title") next to the Name field. Make sure it's Right Aligned. Then use the MouseUp trigger on the radioButtons to setthe text int the "Title" field.

Ex: for the "Mr" radio button, in JavaScript.

Title.rawValue = "Mr.";

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Sterre
Registered: Jan 29 2008
Posts: 17
Hi,

I did it in a slightly different way of selecting the radio buttons making an unchangable textfield with a standard value visible, with a fillable textfield right next to it. In that way you only have to select a radio button once, and then you get the adressing as well as the beginning of the letter, and I made the to fillable textfields global to eachother, so that the user doesn't have to type that much.

If I would use your way with the right alignment I would have the same problem with the white space before the text.

Thanks for the help anyway!! It really helped.

Grtz

Sterre