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

Text manipulation in static text fields

mnaussie
Registered: Oct 5 2009
Posts: 16
Answered

Hi, I am a newbie also but I have about 200 hours invested into training and developing forms. I have a fundamental problem that I am sure someone knows how to address. My problem is using fields in text boxes. I have a block of text that I need to have user input into a field to complete the statement.

For instance, the text field looks like this:

The meeting of the takes place on at and we would appreciate you joining us for this important meeting.

I leave spaces in the text for the field and then add a field on top the text for the user input and try to align it properly. The alignment takes forever and it is never quite right. I also need to make the user input field big enough to accommodate whatever data is entered and there is excess space when the user enters data that is smaller. There must be a better way of handling this but I haven't figured it out yet. In essence I would want the field data to be fluid and aligned.

I know there must be a better way of doing this and would be grateful for any advice. I have created about 25 forms this way and whilst they work I am not happy with the output.

This is my second request. I did get a response that I could use floating fields but unfortunately this did not resolve my problem. I need the user of the form to see the fields and enter data into the fields in the static text.

If anyone else can answer I would be grateful.

Thank you so much for your consideration!

Teri Peterson

My Product Information:
LiveCycle Designer, Windows
Tech264
Registered: Apr 4 2008
Posts: 111
It would be interesting to see if you find a solution. Only thing I found was floating fields that was mentioned earlier.

http://ryanjacobs.com/2009/01/07/floating-field-fun/
mnaussie
Registered: Oct 5 2009
Posts: 16
Could I create a subform that contains the same fields as the finished form and populates the finished form? i.e. "Finished form" has date, location, time floating fields embedded in a static text field and it is populated at render with data that the user enters in a subform that is not part of the finished form's layout (hidden)? or, can I create one dynamic .pdf form that populates the data in a second form that contains the static text floating fields? I just cannot believe that I have to try and align fields on top of static text. It is so hokey. I really only want the user to have to enter the fields once and have them show up in the rendered form. Form might be pushing it, what I am talking about is a glorified letter with fields. All legal forms would have the same requirement. HELP. I can send someone my form to look at if they have any ideas. I have looked through The Bible and have not found anything relevant.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi again,

you can create a floating subform, that contains all your text and also fields for filling the spaces.
But that needs more time and nerves to create.
There is also a problem, that users can be misinterpret.
The fields will grow to fit the user intup, but they will do only after leaving the fields, not during the user enters a value.

I made an example for you, that shows 2 ways of "dynamic sentences".
The first is the one with a floating subform.
The second is the version with floating fields in a text, which I preffer.

https://share.acrobat.com/adc/document.do?docid=9d820539-e36b-4ab1-9b49-6873fd3e0a7b

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

mnaussie
Registered: Oct 5 2009
Posts: 16
The recommended solution will work for me. In fact, I was pretty excited to see it. Unfortunately when I tried to replicate it in my form it did not work. I have tried creating subforms, groups and a bunch of other stuff but when the form is rendered and the user enters the data it does not globally flow to other fields including the floating ones. Am I doing something wrong?

I have shared the document at (I think):

https://share.acrobat.com/adc/document.do?docid=7ebdf2a3-7d83-4f0c-a891-40d0a771b46b

If you could tell me what I am doing wrong I would be ever so grateful. Fixing this problem will resolve all the text issues I am having.

Thank you so much.

Teri Peterson
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

there are 2 little mistakes in your form.

1. In your form properties you set the form to "static-PDF", this will not work, because you wish to change the look of the form, so you have to select "dynamic XML-form".

2. To see the effect of the floating fields you have to add a script to the exit event of each text field you use as a floating field.

form.Page1.Location[0]::exit - (FormCalc, client)xfa.layout.relayout()

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

mnaussie
Registered: Oct 5 2009
Posts: 16
Geez, I thought I checked whether the form was dynamic or not. I suspected that I would need some code to do the refresh but when I checked your example I did not see any scripts. Thank you so much. Whilst this is not an ideal solution it certainly allows me to deal with text better. YOU ROCK!!
br27ke
Registered: Nov 12 2009
Posts: 21
I am having the exact same issue and I can't get the links above to work...any ideas?
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

John Brinkman from Adobe computed a form, where you can type directly into predefined areas (floating fields) in a static text.
But attention, the example is of very complex nature.

For more information see the Formfeed blog:
http://blogs.adobe.com/formfeed/2009/11/editable_floating_fields_v2.php

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs