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

[suggestion] Error Handling Event Strategy #98

Open
CWSpear opened this issue Dec 30, 2014 · 1 comment
Open

[suggestion] Error Handling Event Strategy #98

CWSpear opened this issue Dec 30, 2014 · 1 comment

Comments

@CWSpear
Copy link

CWSpear commented Dec 30, 2014

In the provider.js file, I see a this.defaultNotifyTarget option, which I could use to disable notifications.

Would it be possible to take that further and create a strategy for handling validation errors when they submit a form via aa-submit-form? i.e. if I don't want to use your notifications or have a one-off case where I want to do something very specific.

The default strategy could be the notifications as it is now, so functionality isn't changed, but I could override that and say, do a native popup (on a mobile device) when they try and submit the form without their email.

@johnculviner
Copy link
Member

Nice, that sounds like a good idea to allow for better customization. I'll see if I can do that sometime otherwise feel free to send a PR!

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

No branches or pull requests

2 participants