Re: [Django] #33000: Form does not render html input of RadioSelect

2021-08-07 Thread Django
#33000: Form does not render html input of RadioSelect
---+--
 Reporter:  Michael|Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  Forms  |  Version:  3.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 Michael):

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


Comment:

 If an input is marked as hidden it is not submitted with the form.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.dce3acfbcdb36ff20d3ba19d4e22c1fb%40djangoproject.com.


Re: [Django] #33000: Form does not render html input of RadioSelect

2021-08-07 Thread Django
#33000: Form does not render html input of RadioSelect
---+--
 Reporter:  Michael|Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  Forms  |  Version:  3.2
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Description changed by Michael:

Old description:

> A form with the following field:
> {{
> send = forms.BooleanField(label=False,
> widget=forms.RadioSelect(attrs={'hidden':True}))
> }}
>
> when rendered as:
> {{ form.as_table }}
>
> will be rendered as:
> {{
> 
> 
> 
> 
> 
> 
> 
> }}
>
> Note the lack of input widget. I am trying to create a hidden radio
> button, to store a boolean value that gets sent to the server. A
> `CheckboxInput` however does work, and is argueably better in this
> situation, but this may point to some underlying bug.

New description:

 A form with the following field:
 {{{
 send = forms.BooleanField(label=False,
 widget=forms.RadioSelect(attrs={'hidden':True}))
 }}}

 when rendered as:
 {{{
 {{ form.as_table }}
 }}}

 will be rendered as:
 {{{
 
 
 
 
 
 
 
 }}}

 Note the lack of input widget. I am trying to create a hidden radio
 button, to store a boolean value that gets sent to the server. A
 **CheckboxInput** however does work, and is argueably better in this
 situation, but this may point to some underlying bug.

--

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.ceb82935f5b5080dc6f51c05e3cdaec0%40djangoproject.com.