qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.47k stars 2.99k forks source link

Make Designing forms in QGIS friendlier #29912

Open qgib opened 5 years ago

qgib commented 5 years ago

Author Name: Saber Razmjooei (@saberraz) Original Redmine Issue: 22099

Redmine category:edit_widget


The current way of creating and editing forms in QGIS is not ideal. It has all the great tools/features to built the forms but it can be improved to be a but more user-friendly. Here are some of the areas to improve it:

haubourg commented 5 years ago

Having a preview in the form designer +1

Logic based forms: allow attribute to be visible/editable based on the logic from other attributes

isn't it already possible using the visibility expression? Are you meaning something more powerful?

Allow simple form design in Form view (when browsing data).

can you elaborate this point?

Re-designing the current layout: it is confusing and all options are displayed. Some can be hidden away under advanced options.

you mean widget options ?

haubourg commented 5 years ago

ping @saberraz

saberraz commented 5 years ago

@haubourg see my ideas below with a bit of more explanations.

Logic based example: If Field_1 is Sewer then Field_2 will be value widget with: 300 mm and 600 mm else hidden.

Simple form design: when you are in Form view (e.g. opening attribute table and changing the view to Form view), we should offer some basic form design to user: Date, hidden, value, Advanced (which will open the layer properties window). See the icons on the left of the fields. If user wants to hide id , the widget on the left can be clicked and from the drop-down menu, one can select the hidden widget.

forms

For widget under Attribute Forms in Layer Properties , there should be a handful of most commonly used widgets and the rest can be under advanced.