The val() method collects input field elements value given by dynamic users. W3Schools Tryit Editor. How do you clear text from an input field using a similar method to innerHTML ? Clicking the reset button restores the form to its original state (the default value) before the user started entering values into the fields, selecting radio buttons, checkboxes, etc. 1 thought on LWC regex pattern expression on custom form validation for Phone, Email & Pincode on click submit button Uses of lightning-input elements in Salesforce Lightning Web Component LWC | How to apply regex patterns for Email, Phone & Pincode on custom form validation and clear input field on button click in Salesforce LWC Tip: Use the submit () method to submit the form.