Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ic-trigger-from not working on form with ic-post-to #335

Open
raffaeletani opened this issue Dec 3, 2021 · 1 comment
Open

ic-trigger-from not working on form with ic-post-to #335

raffaeletani opened this issue Dec 3, 2021 · 1 comment

Comments

@raffaeletani
Copy link

I have multiple forms on one page wich i'd like to submit all at once by clicking on one button.

the forms have ic-post-to and ic-trigger-from="#myButton" set.
but when i click the button, no form gets posted.

is this intended behaviour?

@adamstep
Copy link
Collaborator

adamstep commented Dec 3, 2021

Hi @raffaeletani ,

I think you will find ic-include will do what you want. On your button, you can add this attribute with selectors for the forms on the page. All of that data will be included in the request: https://intercoolerjs.org/attributes/ic-include.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants