Feature request #11264

Cascading controls in forms

Added by Médéric RIBREUX about 9 years ago. Updated over 4 years ago.

Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:19563



it could be very interesting to add some dynamic features to QGis forms.
I'd like to add nested controls (or cascading controls) in which the values shown on a control (a QComboBox for example) is filtered by a parameter which value is controlled in another control.

For example, imagine a layer with two "value relation" controls. The first one lists all the continents (taken from a continent dedicated table), the second one lists all the countries (taken from a country dedicated table).
I want to restrict the list of countries according to the value chosen in the continent control.

You can have more than two level nested controls. For example, you can select a country which narrows the list of cities which narrows the list of roads, etc.

It should be linked to "value relation" controls to keep the benefits of dynamic lists creation.

On an end-user point of view, it could take the form of a modified "value relation" parameters dialog with a new set of controls to choose the "parent" field and the common id attribute shared between "parent" and "children" fields.


#1 Updated by Matthias Kuhn about 9 years ago

Would you be able to create some mockups for the configuration dialog and the form widget?

FYI: It is also possible to create such widgets with python code as a plugin.

#2 Updated by Giovanni Manghi over 6 years ago

  • Easy fix? set to No

#3 Updated by Jürgen Fischer about 6 years ago

  • Category set to Unknown

#4 Updated by Hugo Mercier over 4 years ago

  • Status changed from Open to Closed
  • Description updated (diff)

Also available in: Atom PDF