-
Notifications
You must be signed in to change notification settings - Fork 43
Description
A regular form has an action attribute, pointing at the desired feedback page that the user gets to see when the submit button is hit. There are also cases in which a form will have multiple submit buttons, each expecting a different feedback page. For instance in case of a wizard that has a decision tree behind it. For these cases the 'formaction' attribute is used on the submit button itself. The value of the formaction attribute overrides the value of the action attribute on the form, but only for that respective submit button. This works in all modern browsers and in IE 10+ without additional JavaScript.
Pat-inject and pat-modal currently don't seem to respect the formaction attribute. What I currently need is that the injection script also looks if there's a formaction attribute and respect its value. The initial need is limited to a situation with 'pat-modal' on a form. I can however foresee the need for formations in combination with pat-inject too in the near future.
I vaguely remember that formactions have been discussed in the passed between @wichert, @chaoflow and myself, but I can't remember if there was any complication with it.