I think i've seen before some apps will have a pop-uip prompt to confirm that a user wants to proceed with some action (e.g., delete something). Might be the easiest way to do what i need. Anyone have example code for how to do that?
The simplest way, I expect, would be to include an additional page to confirm the action, such as a deletion. The more complex option could be a modal iFrame.... but the extra page is likely the simpler path.
I use this in a bunch of cases...
input "clearMap", "bool", title: "Clear Version Map", defaultValue:false, submitOnChange:true
if(clearMap) {
input "clearMap2", "bool", title: "<b>Are you sure</b>", defaultValue:false, submitOnChange:true, width:3
if(clearMap2) {
state.versionMap = [:]
app.updateSetting("clearMap2",[value:"false",type:"bool"])
app.updateSetting("clearMap",[value:"false",type:"bool"])
}
} else {
app.updateSetting("clearMap2",[value:"false",type:"bool"])
}
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.