Hello,
I’ve noticed that, on validation failure, the red background shows only for a one-line text input box. It does not work when rows are specified for text input controls, nor for selection drop-downs.
For example, this code shows a red background when failing the edit:
[code]{
type: "input",
name: "Title",
label: "Title<span class='required_marker'>*</span>",
value: "",
width: "750",
validate: "custom_title"
}
…
function custom_title(value) {
if (!dhtmlxValidation.isNotEmpty(value))
return “Input must not be empty”;
return true;
}[/code]
Whereas no background shows when this validation edit fails:
{
type: "input",
name: "Justification",
label: "Justification<span class='required_marker'>*</span>",
value: "",
width: "750",
rows: "3",
validate: "custom_justification"
}
...
function custom_justification(value) {
if (!dhtmlxValidation.isNotEmpty(value))
return "Input must not be empty";
return true;
}
Any help would be greatly appreciated. Thank you.