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

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

_Bruce_Robertson

MVP

06-07-2020

Hi,

 

your code to turn off highlighting should work, as long as the "F" of false is in lowercase, if that just some sort of auto correct in this forum? And, I would put it in the docReady event.

 

There is more about the field highlighting, with a sample, in Niall's blog, https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle/ct-p/adobe-livecycle-community

 

Bruce