Can't figure out how to use clearSetting / updateSetting

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:""])
   }
}

I believe you’re experiencing this HSM-like buttons in app? not anything to do with clear setting per se.the values of the input are saved AFTER your handler is triggered overwriting what you’re trying to do.

1 Like