Clearing red outlines after submitting form and resetting input fields

Hi,
I am successfully resetting my form input fields after submitting but I’m not sure how to get rid of the red outline of required form fields (and radio buttons)

Please see screenshot below for verification…


Is there a way to do this?

Many thanks,
Rachel

validation code, if input is blank when trying to submit, etc.

if (($w(‘#input1’).value) === “”) {

        $w("#input1").style.borderColor = "rgba(255,0,0,0.5)"; 
    }  **else**  { 
        $w("#input1").style.borderColor = "#000000"; 

    } 

just set to black

$w(“#input1”).style.borderColor = “#000000”;

Thank you but unfortunately that doesn’t work :frowning:

You can use the resetValidityIndication() function .

@yisrael-wix Perfect! Thank you :slight_smile:

@rachelskuse :beers:

@rachelskuse can u please share the code to reset the form after submit?