Monday, January 24, 2011

Re: hidden widget in form still appears.

On Monday, January 24, 2011 5:06:53 PM UTC, shofty wrote:
I realise i might be touching on something old here since i think i've
found a bug submission on it, but that only talks about in the
admin...


so this is my declaration of a form field...

fields = { 'xxx_venue' :
forms.CharField(widget=forms.HiddenInput(attrs={'class':'hideme','value':this_venue}),
label=""),

and used a hiddeninput to hide it, but i still get the label. so i've
hidden the label by blanking it and i still get the colon between the
empty label and the hidden input.

the class hideme that i've applied only applies to the input, not to
the label or the colon between the two.

is this actually a bug?
is this the same as http://code.djangoproject.com/ticket/11277?
is there an obvious way round this which doesn't involve using jquery?

How are you outputting the field?
--
DR. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment