How to restore the initial state of the input element ?

Yes, $w(“#…”).resetValidityIndication() can make the red box disappear. I found that $w(“#…”).updateValidityIndication() can displaye a red box. In addition, add useing $w(“#…”).valid, a complete input detection can be formed. Once the input is found to be wrong. Just use the red box to remind.