Hi,
I want to get custom message from language xml file in Form_CustomValidate function as shown below but I hit an error “Uncaught SyntaxError: Unexpected identifier”.Please advise,
TIA
Wilson
// Form_CustomValidate event
fs_quotationadd.Form_CustomValidate = function(fobj) { // DO NOT CHANGE THIS LINE!
// Your custom validation code here, return false if invalid.
var eMsg = @Html.Raw(Language.Phrase("askconfirmsave"));
// ask before save
var strconfirm = confirm(eMsg);
if (strconfirm == true) {
return true;
} else {
return false;
}
}