Change Textfield (with default text) color when user changes the content

Avatar

Avatar

ab35711410

Avatar

ab35711410

ab35711410

29-06-2020

Hello,

 

I am developing a form and would like to highlight a textfield to remind the user to enter required information.  This textfield will include a paragraph (set with default text) with certain portions that require the user to manually enter information while keeping the rest of the content.  I would like the textfield to highlight in yellow upon opening the form and then turn off the highlighting or turn the content background to white when the user modifies the default text. 

 

I have tried everything that I can think of to get this working (e.g., Action Builder, setting the background color, etc.) to no avail.  I am pretty sure this will require a custom Javascript, but I am very new to scripting and not sure how to go about this.  Any help would be greatly appreciated.  Thank you!

View Entire Topic

Avatar

Avatar

ab35711410

Avatar

ab35711410

ab35711410

07-07-2020

Bruce,

 

Yes sorry, it was meant to be a lower case "F."  I tried the script in the docReady event as suggested and it did not turn off the Highlight Existing Fields option.  Just to make sure none of my form parameters/settings were preventing the script from working correctly, I entered the script on your provided test from without success. 

 

I did have a glimmer of hope when I saved it as a static form and then back to a dynamic form.  For some reason that turned off the highlighting during that odd moment.  Of course, it also turned off highlighting for all of my adobe forms.  Once I chose the option to highlight the fields again, it of course stopped working.  It seems odd that changing the Highlight Existing Fields option on one form affects all of my PDFs.  Is there any way around this or do you have any other suggestions?  Thank you.