Re: Radio button with nested widget

2011-10-20 Thread Kurtis Mullins
You could just create a form with two upload fields and a char field. And
then use Javascript w/ Radio buttons to disable/enable those fields.

On Thu, Oct 20, 2011 at 12:02 PM, Leonardo Giordani <
giordani.leona...@gmail.com> wrote:

> Hi all,
>
> I'm trying to implement the following form: a first ChoiceField with values
> "mode 1", "mode 2" or "manual".
>
> Depending on its value I need to show a FileUpload field (mode1 or mode2)
> or some CharFields (mode3).
>
> I'm trying to mimic a desktop GUI, where you can three radio button and
> each can contain something: a file upload the first two, some text fields
> the third.
>
> Some advices?
>
> Thank you
>
> Leo
>
> --
> 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.
>

-- 
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.



Radio button with nested widget

2011-10-20 Thread Leonardo Giordani
Hi all,

I'm trying to implement the following form: a first ChoiceField with values
"mode 1", "mode 2" or "manual".

Depending on its value I need to show a FileUpload field (mode1 or mode2) or
some CharFields (mode3).

I'm trying to mimic a desktop GUI, where you can three radio button and each
can contain something: a file upload the first two, some text fields the
third.

Some advices?

Thank you

Leo

-- 
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.