Hi John,

thanks for the response. I was thinking about this overnight and I'd have to agree, it'd probably be best to use a "hybrid" approach as you were mentioning (I'm already breaking out the radiobuttons into an on-template loop: it wouldn't be much more than that, I'd assume).

thanks again,

-Chris

On 8/14/06, John Sutherland <[EMAIL PROTECTED]> wrote:

Hi Chris,

I'd say there were two ways to handle this. The data that you really
want is the number of rows, you radios are really just to help the
user choose a value.

Option #1 -- Use a custom field.
You can create your own custom field type, but this is probably
overkill for this application.

Option #2 -- Use the raw post data.
You don't have to use Manipulators and in more complicated forms it
may be easier not to (or you could have a hybrid aproach, where you
use a manipulator, but don't put the {{ form.field_name }} in your
templates).

Good luck,
John.

On 8/14/06, Chris Kelly <[EMAIL PROTECTED]> wrote:
>
> Hey all,
>
> I am trying to create a series of radio buttons where you can select
> one radio button, and next to the selection will be a Text Field, drop
> box, or maybe both, for additional information related/ needed for the
> current radio selection.
>
> like so:
>
> Radio | Label
> (o) show all rows
> () Limit to [text field] rows
> () Limit to [text field] percent of rows
>
> or, either line might have a select field instead of a text field,
> e.g.:
> () Limit to [select field] percent of rows
>
> is it possible to put a text field/ select field into a choices section
> of a radio list? Or would this be better served by manually retrieving
> form values in a post call and parsing them individually (rather than
> via a manipulator)?
>
> thanks!
>
> -C
>
>
> >
>


--
[EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to