tsResetFormPro is a lightweight JavaScript utility designed to provide a reliable reset mechanism for RSForm Pro forms in Joomla 5/6.
- RSForm reset failure after POST
- Conditional fields not resetting correctly
- reCAPTCHA reinitialization issues
- Forces GET reload instead of DOM reset
- Intercepts native reset buttons
- English / Swedish (configurable)
- Copy
tsResetFormPro.jsto your template or media folder - Include it in your Joomla template or custom script loader
- Ensure it loads after your form
The script works automatically when using native reset buttons:
<button type="reset">Reset</button>or
<input type="reset" value="Reset">In these cases:
- The script automatically detects RSForm forms
- Reset buttons are intercepted
- A safe reset is performed using a forced GET request
✅ No additional configuration or onclick is required
The automatic behavior ONLY applies to elements with:
type="reset"
The following will NOT trigger the script automatically:
<button type="button">Reset</button>
<button>Reset</button> <!-- defaults to type="submit" -->Note:
<button> defaults to type="submit" if no type is specified.
You can manually trigger the reset function when needed:
tsResetFormPro();<button type="button" onclick="tsResetFormPro()">
Reset form
</button>MIT License