Re: conditional fields

2011-02-10 Thread Joel Goldstick
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 produ

Re: "Conditional fields" in forms

2009-05-29 Thread Lacrima
This article will help a lot: http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/ The simplest way is just to override __init__ method of your Form class. For example, you need to show to user additional fields, depending on previous choices. class MyFirstForm(forms.Form): choices = form

Re: "Conditional fields" in forms

2009-05-28 Thread Lakshman Prasad
You will need to use dynamic forms. On Thu, May 28, 2009 at 1:02 AM, Jochem Berndsen wrote: > > All, > > Is there an easy way to include "conditional fields" in forms within the > Django framework. By "conditional fields", I mean fields that are shown > or not shown depending on earlier choices

Re: "Conditional fields" in forms

2009-05-28 Thread V
On May 27, 9:32 pm, Jochem Berndsen wrote: > All, > > Is there an easy way to include "conditional fields" in forms within the > Django framework. By "conditional fields", I mean fields that are shown > or not shown depending on earlier choices the user made in the form. > What would be the canon