[Django] #30873: I'm looking option to get the selected value from MultipleChoiceField

3 views
Skip to first unread message

Django

unread,
Oct 11, 2019, 7:38:35 AM10/11/19
to django-...@googlegroups.com
#30873: I'm looking option to get the selected value from MultipleChoiceField
-----------------------------------------+------------------------
Reporter: malathisathya | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I'm facing issue in getting the selected value from MultipleChoiceField.
My multiple choice fields as many runnable scripts, upon selecting one or
more from that list, I would like to get and process those selected values

In form, I defined MultipleChoiceField and in the view, I'm trying to get
the selected value. I tried with form.cleaned_data['field_name'],
request.POST['field_name'], request.POST.get('field_name') but nothing is
working for me

Either I'm getting an empty list, None otherwise

I tried to look out for solution in other available resources but none of
them are helping to fix my issue. With no choice I'm here to raise a new
ticket and requesting any possible solution

--
Ticket URL: <https://code.djangoproject.com/ticket/30873>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 11, 2019, 7:42:13 AM10/11/19
to django-...@googlegroups.com
#30873: I'm looking option to get the selected value from MultipleChoiceField
-------------------------------+--------------------------------------
Reporter: malathisathya | Owner: nobody
Type: Uncategorized | Status: closed
Component: Forms | Version: 2.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid


Comment:

Please don't use Trac as a support channel.

Closing per TicketClosingReasons/UseSupportChannels.

--
Ticket URL: <https://code.djangoproject.com/ticket/30873#comment:1>

Django

unread,
Oct 11, 2019, 9:04:28 AM10/11/19
to django-...@googlegroups.com
#30873: I'm looking option to get the selected value from MultipleChoiceField
-------------------------------+--------------------------------------
Reporter: malathisathya | Owner: nobody
Type: Uncategorized | Status: closed
Component: Forms | Version: 2.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by malathisathya):

Closing this ticket as I'm able to get the value. I was trying to get the
value from invalid view. Fixed my code

--
Ticket URL: <https://code.djangoproject.com/ticket/30873#comment:2>

Reply all
Reply to author
Forward
0 new messages