How to make the fill color disappear automatically when text is entered.

New Here ,
Sep 30, 2020

Copy link to clipboard

Copied

Hi, 

 

I'm wondering if someone can help me with the text field properties.  My ultimate goal is to have the text boxes in my fillable PDF all be yellow until text is entered.  Once anything text is entered in the text box, I want the yellow to disappear.  I believe to do this I need to run a custom validation script but I am unsure what to entered to actually make it do what i want.  Any help would be appreciated!

TOPICS
Edit and convert PDFs

Views

41

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
try67 LATEST
Most Valuable Participant ,
Oct 01, 2020

Copy link to clipboard

Copied

Use this:

event.target.fillColor = (event.value==event.target.defaultValue) ? color.yellow : color.transparent;

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more