Expand my Community achievements bar.

set color to validation field

Avatar

Level 5

Hi All.

I have validation to NumericField. How to set font color for that field. I would to change font color when error message will closed and I will return back to failed field.

Thanks.

3 Replies

Avatar

Level 10

Hi,

You can change the colour of the font for the value of the numeric field using:

this.font.fill.color.value = "255,0,0"; 

The javascript for the caption is:

this.caption.font.fill.color.value = "255,0,0";

Hope that helps,

Niall

Avatar

Level 5

Thanks for replay.

The validation field without border Is it possible in error issue after close error message display red border? If no error the keep border invisible.

Thanks.

Avatar

Level 10

Hi,

John Brinkman has an excellent validation form here: Validation Patterns: Part 3 and improved sample

Parts 1 and 2 are also worth working through.

Hope that helps,

Niall