Your question is pretty short and I'm not sure if I got everything what you want to do.
WebIQ provides a method
confirm(msg, callback [, title] [, param])
which opens a dialog which you have to confirm or cancel. You need a login for https://www.smart-hmi.com to read the docu. I add the description from docu:
https://www.smart-hmi.com/user/download/deliver/docs/documentation-webiq-visuals-reference-2.15-ee64/shmi.html
<static> confirm(msg, callback [, title] [, param])
Displays a dialog asking for confirmation of an action. The specified callback function will be be run after the user selected to either confirm or deny the request.
Parameters:
Name
Type
Argument
Description
msg
string
displayed message
callback
function
callback function
title
string
<optional>
optional title
param
object
<optional>
optional dynamic parameter object
Example
const numChanges = 2;
shmi.confirm("Do you really want to apply <%= NUM_CHANGES %> changes?", (confirmed) => {
if (confirmed) {
console.log("User chose to apply changes.");
} else {
console.log("User chose not to apply changes.");
}
}, "Change Confirmation", { NUM_CHANGES: numChanges });
... View more