Hi there,
I am new here and hope somebody can help me.
I am trying to get the field caption in the error modal window instead of the field name.
The code I used in the hooks file is something familiar like below
function show_error(field, msg){
modal_window({
message: '<div class="alert alert-danger">' + msg + '</div>',
title: 'Error in ' + field,
close: function(){
$j('#' + field).focus();
$j('#' + field).parents('.form-group').addClass('has-error');
}
});
return false;
}
Appreciate if someone can help me.
Thanks.
Show Error in Modal Window with Field Caption
Show Error in Modal Window with Field Caption
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.