On Apr 1, 6:53 pm, Brian Neal <bgn...@gmail.com> wrote: > On Apr 1, 8:16 pm, rizzoo <michaelros...@gmail.com> wrote: > > > How do I make a field hidden when using ModelForm? I tried > > HiddenInput but it appears to be ignored. > > > code:http://dpaste.com/22290/ > > Line 9 > > > Here's what View Source shows for that line in the browners: > > <label for="id_last">Last:</label><input id="id_last" type="text" > > name="last" maxlength="45"> > > Well it looks like you are trying to hide the field "name". So why are > you showing us the HTML for the field named "last"? > > I just did this the other day and it worked for me. > > Can you post your model code too? > > BN
Brian. Thanks for responding. I mean to post "name". I've been experimenting with other field types, which why I accidentally pasted "last". Here is the HTML for "name". <label for="id_name">Name:</label></th><td><input id="id_name" type="text" name="name" maxlength="45" /> Here's the model. http://dpaste.com/22453/ Thanks again for your help. Riz --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---