cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the background of a text field in adobe interactive forms

Former Member
0 Kudos

Hello All,

Is there any way to change the background colour of text field in interactive form dynamically.??

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Naresh,

Change the language to JavaScipt in Script Editor of LiveCycle Designer and use the following code to highlight the area of TextField where R,G,B means that you have to give the RGB values of the color you want.

<YourTextFieldName>.border.edge.color.value = "R,G,B";

For eg:- If you have a textfield with name TextField1 then this will highlight the TextField1 area in red color.

if ((TextField1.rawValue==null) || (TextField1.rawValue=="")) 
{
  TextField1.border.edge.color.value = "255,0,0"; 
}

You can use this on exit event of Textfield1 or at the submit button where you check the form data.

Chintan