On Thu, Feb 10, 2011 at 6:03 AM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:

>  Hi,
>
>
>
> Is there a way to show (in the admin tool) certain fields only if other
> fields are filled with certain values ?!
>
>
>
> Example:
>
>
>
> I’ve got a table named Product.
>
>
>
> 1 product can be a book, a magazine oder just a project.
>
> If a Product is a Book i want to fill different fields than if it was a
> magazine.
>
>
>
> Know what i mean ?!
>
>
>
> Kind regards
>
>
>
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
>
>  **
>
> Patrick Szabo
> XSLT-Entwickler
>
> LexisNexis
> Marxergasse 25, 1030 Wien
>
> patrick.sz...@lexisnexis.at
>
> Tel.: +43 (1) 534 52 - 1573
>
> Fax: +43 (1) 534 52 - 146
>
>
>
>  --
> 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.
>

When you are viewing a form, it has already been delivered to your browser.
When you make a list selection
the other fields can't change their values until you make another request to
the server.  For this people use AJAX.

You need to use the change in a form field to send a message to the server
(javascript) which will wait until the server
sends back new data which you then use to repopulate your form.

-- 
Joel Goldstick

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