Watermark text box

13 views
Skip to first unread message

Chuck

unread,
Jun 19, 2009, 12:32:01 PM6/19/09
to CenoPDF Support Group
We'd like to have some text displayed in the text box when no text has
been entered telling what the box is for, and when the box is clicked,
have the text cleared ready for input.

I don't see any way to do this in cenopdf.

CenoPDF Support

unread,
Jun 19, 2009, 12:37:35 PM6/19/09
to cenos...@googlegroups.com
Hi Chuck,

Thanks for asking. This will need a bit of Javascript programming. I will
make an example for you either today or tomorrow.

Thanks,
Yang
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.79/2186 - Release Date: 06/19/09
06:53:00

CenoPDF Support

unread,
Jun 19, 2009, 1:11:23 PM6/19/09
to cenos...@googlegroups.com
Please see the attached example. The key is to put the following script into
properties > Advanced > Format trigger.

if(event.target.valueAsString.length == 0)
event.value = "INPUT SOMETHING";

Thanks,
Yang

-----Original Message-----
From: cenos...@googlegroups.com [mailto:cenos...@googlegroups.com] On
Behalf Of Chuck
Sent: Friday, June 19, 2009 9:32 AM
To: CenoPDF Support Group
Subject: Watermark text box


empty-text-prompt.doc
empty-text-prompt.pdf

Chuck Snyder

unread,
Jun 19, 2009, 1:18:17 PM6/19/09
to cenos...@googlegroups.com
Thanks, works beautifully, I tried a javascript to do this, but this works and mine didn't.
 
Really apperciate the help, it makes a difference.
 
It would be nice it the watermark was just an option for the text box too.  Maybe with a grayed out text???
 
anyway, this works, and is pretty simple to implement.  again thanks for the quick response.
 
chuck

CenoPDF Support

unread,
Jun 19, 2009, 1:24:41 PM6/19/09
to cenos...@googlegroups.com

You are welcome Chuck. It is a good idea to add an option for this. We will do that in next release.

 

Thanks,

Yang

<br

CenoPDF Support

unread,
Jun 21, 2009, 11:10:53 PM6/21/09
to cenos...@googlegroups.com

Chuck,

 

I am glad to let you know that we have added this watermark feature in the new build. Please download the latest build at:

http://www.lystech.com/download-pdf-form-tool.aspx

 

You should see that in the text box properties there is a new box called Watermark, which is for this.

 

Thanks.

Yang

Chuck Snyder

unread,
Jun 22, 2009, 10:03:02 AM6/22/09
to cenos...@googlegroups.com
Boy was that quick.  Sigh now that the other project is done, I'll just have to wait until the next time it needs updating.
 
chuck

Reply all
Reply to author
Forward
0 new messages