Hi.
If you want to do anything clientside, meaning you want to react on
input fields being selected or certain values being input ect you need
javascript. Django can only react on data being sent or urls being
asked for, not what the user is typing.

Now it's not clear exactly you what it is you want to do. But it
sounds like you could do it quite easely with jQuery. You probably
want to show it all with out the js and then hide the parts you want
and only show them when certain conditions are met.

~Jakob

On 20 Mar., 18:09, DanielM <mesak...@gmail.com> wrote:
> Hi there,
> i am trying to implement a contact form where some fields are shown by
> default and others shall be shown if some of default is selected. What
> my options of implementing this feature would be?
>
> 1. Javascript into the template - but then how would i change the
> shown template if anything is selected?
> 2. Can i go over submitted values and if some_field_is_selected throw
> a template with additional form?
>
> Seems to be easy to do but no easy solution.
> Please send me some links of possible.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to