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

Feature request: ChoiceField #56

Open
racitup opened this issue Sep 4, 2017 · 3 comments
Open

Feature request: ChoiceField #56

racitup opened this issue Sep 4, 2017 · 3 comments

Comments

@racitup
Copy link

racitup commented Sep 4, 2017

I'd have thought it would be a fairly common requirement to have the user be able to select from a set of choices. For example, the subject line of an email selected from a set of options which makes it easier to filter emails.

@philippeowagner
Copy link
Member

philippeowagner commented Sep 6, 2017

A PR that does not break compatibility is welcomed :)

@racitup
Copy link
Author

racitup commented Sep 7, 2017

Unfortunately I wasn't able to use this plugin because there wasn't a way to add a css class to the form input elements.

@JurajKavka
Copy link

Hi @racitup!

there wasn't a way to add a css class to the form input elements.

see my PR #57 and feel free to use my fork here. It implements custom css class only for EmailField and TextArea for now, because I don't have a time. Working example is here in two languages. But don't use it for testing mails please ;)

My fork also implements redirect after form submission to prevent form resubmission with page reload (thank you message goes via django message framework) and Invisible reCaptcha from Google. But as I said, You need custom templates for working version with my fork (mainly for recaptcha JS part and mentioned messages after redirect).

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

4 participants