Past Issues Searched
Issue is a Bug Report
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
I have a get request in a form, where one of the expected params is provider and the value is the button that is clicked. The form works as expected when no event class is present, but if I add one the form submission is missing the provider param from the clicked button. There is also two hidden elements, returnUrl and __RequestVerificationToken which are always present in either case. The only one missing is the button's value.
here is an example of the form:
<form method="post" class="plausible-event-name--user-login-or-signup" action="/user/login">
<input type="hidden" name="returnUrl" value="/return/url/example">
<input type="hidden" name="__RequestVerificationToken" value="super-secret-token-value">
<button type="submit" name="provider" value="Google" title="Log in using your Google account">
Login With Google
</button>
<button type="submit" name="provider" value="Apple" title="Log in using your Apple account">
Login With Apple
</button>
</form>
I suspect it is because plausible is capturing the submission via button click, stopping it, then re-submitting it via element.submit() or element.requestSubmit() but I am not sure.
Expected behavior
The button's value won't omitted when the form is submitted via a click on a particular button.
Screenshots
No response
Environment
- OS: Windows
- Browser: Chrome
- Browser Version: 132.0.x
Past Issues Searched
Issue is a Bug Report
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
I have a get request in a form, where one of the expected params is
providerand the value is the button that is clicked. The form works as expected when no event class is present, but if I add one the form submission is missing theproviderparam from the clicked button. There is also two hidden elements,returnUrland__RequestVerificationTokenwhich are always present in either case. The only one missing is the button's value.here is an example of the form:
I suspect it is because plausible is capturing the submission via button click, stopping it, then re-submitting it via
element.submit()orelement.requestSubmit()but I am not sure.Expected behavior
The button's value won't omitted when the form is submitted via a click on a particular button.
Screenshots
No response
Environment