-
Notifications
You must be signed in to change notification settings - Fork 38
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
[UX] Contact form: Improve the recipients field #2872
Comments
PR backdrop/backdrop#2147 for solution 3, following the Robustness principle : Be conservative in what you send, be liberal in what you accept. Contact category form can accept addresses separated by comma, space or line-break. |
Great job @opi! I updated your PR with minor changes:
|
With all the modifications to Contact module happening at the same time, this would by easier if we only merged this into 1.x for 1.11.0. |
Hm, one more thought here. Potentially we should also allow semicolons as a separator. I believe that is the default separator for Outlook (or it was years ago). https://www.lifewire.com/separate-multiple-email-recipients-1173274
There was a similar request for Webform module a long time ago, so we added semicolons there as well. |
agreed, thanks.
I'll add semicolons as separator, nice improvement. I'll probably rebase & squash the PR, while keeing both authorship. |
I finally update the PR with semicolon separator, and a little UX improvment https://github.com/backdrop/backdrop/pull/2147/files#diff-037ce3d000dd806422b7fda44dddab91R203 ; I found myself in a merge-apocalyspe, thus we need to cleanup the Git history before considering the merge into 1.x |
😆 Wondering how/if #1005 fits here. |
Cleaned up the Git history |
Tests are green, ready for review ! |
@opi The sandbox site displays an "unexpected error" on the home page. It's possible to log in though, and Status report says that there are Database updates available. |
@olafgrabienski sandbox fixed, thanks for the report. |
Thanks for fixing the sandbox! I've tested the recipient field there with the "ready to paste" list, the results look good: email addresses can be entered in various ways, are displayed using new lines (configuration view) or commas (overview). Great improvement! (RTBC for the sandbox, haven't looked at the code.) |
Suggestions/comments:
I have filed a few follow-up UX issues for things that I have noticed related to the contact categories form and the listing. |
Marked as RTBC as 3 different people said it's ok. |
RTBC indeed 👍 |
…egory can be confusing. By @opi, @klonos, @olafgrabienski, and @BWPanda.
Thanks all! Merged backdrop/backdrop#2147 into 1.x for 1.11.0. Because we have so many changes to Contact module in the works, I'm not backporting this into 1.10.x (though if we feel strongly I can cherry-pick it back). |
Agree. Thanks for merging this one. |
When you enable the core Contact module and then go to /admin/structure/contact/configure/1 to add multiple email addresses as recipients, you have to separate them with a comma. But since the Recipients field is a textarea, one may assume that you can enter one email address per line (e.g. separated by a newline character). This isn't the case.
For better UX, I'd suggest either:
My preferred solution (in order of preference) is: 3 > 2 > 1
PR by @opi: backdrop/backdrop#2147
The text was updated successfully, but these errors were encountered: