I'm using SmartClient version: v90p_2013-09-20_LGPL.
My problem is with the ColorItem in a DynamicForm. I have the field, to be filled with a hexdecimal value, and besides it a ColorPicker.
If I have a color setted in this field (like #000222, for example), and try to change it, putting an invalid value, like #000222abc, the field gets corrected by itself, changing to the old value, that was right. The problem is that I want to validate it, and show a message. But, with the field going back to the old (and right) value, I can't do this validation.
There is a way to avoid this behavior? I tried "fomatOnBlur" and "formatOnFocusChange" but doesn't work.
It occurs at all browsers.
Thanks!
My problem is with the ColorItem in a DynamicForm. I have the field, to be filled with a hexdecimal value, and besides it a ColorPicker.
If I have a color setted in this field (like #000222, for example), and try to change it, putting an invalid value, like #000222abc, the field gets corrected by itself, changing to the old value, that was right. The problem is that I want to validate it, and show a message. But, with the field going back to the old (and right) value, I can't do this validation.
There is a way to avoid this behavior? I tried "fomatOnBlur" and "formatOnFocusChange" but doesn't work.
It occurs at all browsers.
Thanks!
Comment