Expand my Community achievements bar.

Textbox Watermark

Avatar

Level 2

Hi, I am trying to figure out how to make a textbox watermark appear in the empty text field when creating forms in LiveCycle but I can't seem to find the solution. If anyone knows how to do this it would be a huge help. Thanks!

10 Replies

Avatar

Level 10

Hi,

If you select the textfield and go to the Object > Field palette. Click the Patterns button and tick Allow Null, then type if the message that you want the textfield to show, when it is null.

There is an example here that I am intending to finish at some stage: http://assure.ly/pZ5sOz. Click under the line and type a name.

Also have a look at page 2 in this example (on the righ hand side): http://assure.ly/ewrLMo. This has script in the enter and exit events to change the appearance of the text.

Hope that helps,

Niall

Avatar

Level 2

Thank you Niall but I'm sorry to say that I've made a mistake. I am actually using LiveCycle Designer and there is not a Patterns button under the Field palette. Do you know how I can do this in LiveCycle Designer? I figure I might as well ask you here before I repost in the Designer forum.

Avatar

Level 10

Hi,

I was referring to LC Designer. See screenshot below:

Parallels Desktop1.png

Parallels Desktop2.png

Hope that helps,

Niall

Avatar

Level 2

I do not have the Patterns button. I am using LC Designer 8.0.

Avatar

Level 10

Hi,

You can also achieve this using script. See the example here: http://assure.ly/gcXx03. This is scripting a null pattern for a dropdown, but you can take a same approach for a textfield.

Niall

Avatar

Level 2

Ugh. I was afraid it would come to this. Thank you for your time/help.

Avatar

Level 6

Make sure you're using a Text Field object and not a plain Text object. Text Fields allow user input and have patterns; Text objects are for static (non-input) text display and do not have patterns associated with them.

Avatar

Level 2

I have been using Text Field objects.

Avatar

Level 6

Can you post a screenshot of what your Designer window looks like, similar to what Niall posted?  It's strange that there's no Pattern button.  I'm using Designer 8 and I don't have that problem.