You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
Instead of the action declared in the form tag, an html-form can be submitted with another action, declared on the clicked submit-button: See here.
This tool uses only the action declared in the form tag when it is initialised. At that point in time we cannot know, though, with which action the form will be submitted.
I suggest binding eventlisteners on all submit-buttons of the form, that have a formaction attribute, and override the action attribute of the form, when triggered.
An easier workaround consists of 3 steps:
removing the this.action = formElement.action; from the "initialize" function
setting self.action = formElement.action in the submit callback of the script
on your submit-button set onclick="this.form.action='myAction'"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Instead of the action declared in the form tag, an html-form can be submitted with another action, declared on the clicked submit-button: See here.
This tool uses only the action declared in the form tag when it is initialised. At that point in time we cannot know, though, with which action the form will be submitted.
I suggest binding eventlisteners on all submit-buttons of the form, that have a formaction attribute, and override the action attribute of the form, when triggered.
An easier workaround consists of 3 steps:
this.action = formElement.action;
from the "initialize" functionself.action = formElement.action
in the submit callback of the scriptonclick="this.form.action='myAction'"
The text was updated successfully, but these errors were encountered: