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 perfectly as long as I click to highlight the fields first.  For some reason, my form does not have the option to highlight the fields at the top of the form.  Is there any way to enter a script in the Initialize event to automatically highlight the fields?  I have searched and tried a few different scripts in various events to achieve this, but without success.  I would upload my form, but I am building it on my company's isolated network.  I greatly appreciate all of your help.  

 

~AB