SmartClient Version: v12.1p_2021-10-22/AllModules Development Only (built 2021-10-22)
Chrome 95.0.4638.54 (64 bit)
Windows 10 Pro (21H1)
Hello, please modify this sample:
https://www.smartclient.com/smartcli...ase/?id=upload
like this:
then choose a file by double clicking on it: the modal window will be dismissed.
It works with Chrome on MacOS.
Chrome 95.0.4638.54 (64 bit)
Windows 10 Pro (21H1)
Hello, please modify this sample:
https://www.smartclient.com/smartcli...ase/?id=upload
like this:
Code:
isc.Window.create({
isModal: true,
autoSize: true, autoCenter: true,
dismissOnOutsideClick: true,
items: [
isc.DynamicForm.create({
autoDraw: false,
ID: "uploadForm", width: 300,
dataSource: mediaLibrary,
fields: [
{name: "title", required: true},
{name: "image", type: "file", multiple: false, hint: "Maximum file size is 5 MiB"},
{
title: "Save", type: "button",
click: function () {
this.form.saveData("if(dsResponse.status>=0) uploadForm.editNewRecord()");
}
}
]
})
]
}).show()
It works with Chrome on MacOS.
Comment