How Dialog.open to show validation message of current form?

Is there someone can guide me how form dialog open to show validatemsg on it content?

Example (on click button js):
var validatemsg = "Please enter the information for the following fields :

";
validatemsg = validatemsg + "➠ 1. Full Customer Name
";
validatemsg = validatemsg + "➠ 2. Country
";
console.log(validatemsg);
$('#SPWarnDialog').append('

' + validatemsg + '
');
Dialog.open('',
{ args: 'something' },
function(hasSaved) {
console.log(hasSaved);
}, {
title: 'Note',
html: document.getElementById('validatemsg'),
//width: 800,
//height: 800
}
);

Hello @AngWR,

Welcome to the Plumsail Community!

Dialog does not support HTML content. It accepts a URL only, find more information here.

You can try using kendo.popup or kendo.window instead:
https://docs.telerik.com/kendo-ui/controls/layout/popup/overview

Thank you so much.. it works.

1 Like