on 09-29-2008 2:39 PM
Hello All,
Is there any way to change the background colour of text field in interactive form dynamically.??
Thanks,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.