cancel
Showing results for 
Search instead for 
Did you mean: 

Border colour for fillable part of an input field

Former Member
0 Kudos

Hi all,

As per our scenario, we require to highlight just the fillable part of the text field with a red border.

Any suggestions are welcome.

Please help.

Thanks

Amita.

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Amita,

Use this code to highlight the fillable area where R,G,B means that you have to give the RGB values of the color you want.

<Your TextField Name>.border.edge.color.value = "R,G,B";

For eg:- If you have a textfield with name TextField1 then following code will highlight the TextField fillable 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 Textfield or at the submit button where you check teh form data.

Chintan

Former Member
0 Kudos

Hi Chintan,

Thanks for your reply.

I solved my problem.

Regards

Amita

chintan_virani
Active Contributor
0 Kudos

Amita,

Glad to know that but 10 points reward would have been much better option.

Chintan