-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feature: [up-validate] with different URL #486
Comments
I like it. It could be implemented by parsing and merging an Do you think <form action="/form-result" up-validate up-validate-action="/form-render"> |
Hi @triskweline, For naming I would argue pro How should it behave if only How should the behavior be on nested |
No. It's a modifying attribute of
We cannot easily allow nesting See these slides: If we allowed multiple |
Hi,
It would be very helpful to be able to point
up-validate
to another URL then the form action (like<form action="/form-result" up-validate up-validate-url="/form-render">
).My use case is as follows:
In more detail it looks like this:
filter
-button a drawer with disabled history gets opened using URL where the form gets renderedonsubmit="up.layer.accept();"
up-validate
Now modifying one form field will trigger
up-validate
making the form re-render using the form rendering action and submitting the form via the button will close the drawer and send the form to the page where the filter will be applied.BUT submitting the form differently, like via keyboard, will submit the form rendering page instead.
If I would be able to use a different URL for
up-validate
only I would not need to use differen form actions in the first place and just tell unpoly to use a different URL for validating (aka re-rendering) the form and the logic would be much more straight forward.This pattern could also be used to workaround #460
The text was updated successfully, but these errors were encountered: