Feature request #11264

Updated by Hugo Mercier about 5 years ago

Hello,



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.

Back