I cannot figure out how to use clearSetting or updateSetting to clear an input field after a user clicks on a button. What am I doing wrong? The click of the submitNewPerson button does not clear the field.
input name: "newPersonName", type: "text", title: "Name (no spaces)", submitOnChange: true
input name: "submitNewPerson", type: "button", title: "Submit", width: 3
void appButtonHandler(btn) {
switch (btn) {
case "submitNewPerson":
app.clearSetting("newPersonName")
app.updateSetting("newPersonName",[type:"text",value:""])
}
}