I hope I can get across what I wish to do here. I have build a form in LiveCycle with textfields that give instruction to the user on what is required to be entered into that field. These instructions are in the textfield enter area and are over written as soon as that textfield is opened. What I wish to have happen here is to have these instructions in a different font from what the final entered text will be. I have seen some forms with this feature where the text will not only be on a different font but color as well. I have not found a feature in "Action Builder" or other areas that will allow me to do what I require.
To add "sample text" in a text field, right-click on the text field and select Patterns > Display.
Check the "Allow Empty" box and enter your sample text. Granted, it will be in the same font/default color as the text being entered; however, you can add a couple of Action Builder routines to change font colors, such as making the sample text a light gray and entered text as black.
To do that, three Action Builder routines are necessary: 1) Initialize the text field and set its font color to gray; 2) when text field is entered (i.e., cursor is placed in it), change the text field color to black; and 3) if the text field is empty, set the font color back to gray.
Using "Allow Empty" is different than adding a default value--default sets the actual value of the text field, whereas, displaying text when the field is empty does not alter the field's value whatsoever.
BTW, this works for other types of entries too: numeric fields and custom fields (emails, phone numbers, SSNs). Just set the sample display for the empty field to a sample of whatever you're expecting the user to enter.
A trick i have used for this is to place a text object under the textfield with the instruction text. Add code to the TextField so that when the field is entered, the text object below is made invisible. You might want to also put code in the TextField's exit property so that if the textfield is empty, the instructional text object is made visible.
By doing it this way, the text object can be formatted how you like.