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

Add user input field within a paragraph

dinht293
Registered: May 7 2010
Posts: 5

Hey,
 
I am looking for a way to have an editable field within a paragraph. The whole paragraph is static and the only thing editable in the paragraph is the user input field. It needs to be able to push the context out after it.
 
For example:
 
This can be the determining factor of whether we go home or not. It definitely is one of the {userInputField} games of the season for us.
 
I am using Adobe LCD 9. Any thoughts or suggestions?
 
Thanks
Tony

My Product Information:
LiveCycle Designer, Windows
nmjfaulkner
Registered: May 24 2010
Posts: 29
Create two TextFields - say Fa and Fb where Fa is wher eyour static text is and Fb is the input field. Make Fa calculate only, remove the caption. In the CALCULATE script for Fa do:

this.rawValue = "This can be the determining factor...is one of the " + Fb.rawValue + " games of the season...";It will then add in what you type into Fb, and if nothing is there it adds in the word 'null'. You can get more fancy and not have any text in Fa by using a simple if:

if (Fb.rawValue == null)
{
this.rawValue = "";
}
else
{
this.rawValue = "This can be the determining factor...is one of the " + Fb.rawValue + " games of the season...";
}