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

06-07-2020

Bruce,

 

The script works when I turn off the highlight fields option on my form.  Unfortunately, turning it off also turns it off for all of my forms in Adobe.  Is there any way to customize this setting for the form itself to where it does not affect my overarching Adobe settings?  I tried the following script in the Form Ready event without success.  Any suggestions would be greatly appreciated.  Thank you.

 

app.runtimeHighLight = False

 

~AB