Super quick tip for USP Pro and an alternate way to reset your front-end forms. Estimated reading time: 30 seconds ;)
USP Pro includes a shortcode that displays a link that will reset the form to default/empty values.
To add the reset link, visit the “Edit USP Form” screen for your form, and click the USP:Reset Quicktag button (located just above the content editor, you’ll find a few rows of Quicktag buttons). That will add a simple hyperlink to reset all form fields.
That’s all great, but there is another way. To instead use a button (instead of a hyperlink) to reset the form, add this code:
<input type="reset" value="Reset all form values">
Note that the shortcode requires the form URL as one of its attributes, but the reset
<input> tag works without requiring any URL or path.