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

How should multiple emails be separated in a form #17

Open
gevezex opened this issue Jul 2, 2020 · 3 comments
Open

How should multiple emails be separated in a form #17

gevezex opened this issue Jul 2, 2020 · 3 comments

Comments

@gevezex
Copy link

gevezex commented Jul 2, 2020

How should multiple emails be separated in a user form? Should the user separate the emails with comma's or do they need to give it in a list format like [[email protected], [email protected], ...]

@gevezex
Copy link
Author

gevezex commented Jul 9, 2020

Ok I figured out it is by entering each email on a new line (at the input field of the form).
Is there a way to replace a newline by a comma like in an email client?

@KarimTayie
Copy link

yea, I have also figured it out by checking the source code.
adding multiple emails by a comma as a separator looks better IMHO.

@gevezex
Copy link
Author

gevezex commented Jul 16, 2020

@KarimTayie I just changed the line 19 in forms.py:

return [v.strip() for v in value.splitlines() if v != ""]

to

return [v.strip() for v in value.split(',') if v != ""]

I wished you could do this by adapting in the options file for the choice of split character though.

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