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...
![](https://static.wixstatic.com/media/a27d24_6d27ca2a591d451e877e86e5a879ee21~mv2.png/v1/fill/w_749,h_562,al_c,q_90,enc_auto/a27d24_6d27ca2a591d451e877e86e5a879ee21~mv2.png)
Is there a way to do this?
Many thanks,
Rachel
You can use the resetValidityIndication() function.
@Rachel Skuse can u please share the code to reset the form after submit?
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";