Questions tagged [attribute-form]
The attribute-form tag has no usage guidance.
Use child's last values for new child feature
I have a layer "trees" and a child layer "observations". When I create a new child, I do not want to fill in all the data (e.g. vitality) again. Each observation has a date - what ...
QGIS Value Map widget / look up table
I have two tables: One, where I digitize water pipes (A) and a second one with pipe-types(B, not mappable). The pipe-types layer contains several columns like type, material, diameter_inside, ...
Display form window as small as possible (QGIS)
Is it possible to always set the form window (standard form of QGIS) to its minimum size? Currently, the form window retains the size of the last opened form window. However, I have forms with many ...
Enabling 'reuse last entered value' when creating adding field with PyQGIS
When I create a vector and add fields: fields = QgsFields() fields.append(QgsField("True_Class", QVariant.Int)) How can I set the "True_Class" field to 'reuse entered value' as if ...
QField - Incrementing SampleID failing
Using QField to collect field samples and have attribute forms setup. Most are Value Map (drop-down selection) along with date and then SampleID which is incrementing; Trying to get zero padding ie ...
Create field with sequential automatic alphanumeric name in QField
I've created a series of layers in QGIS to collect data in field with mobile app QField. Each layer have a rule to make its names. For example, one layer is modeled to collect corn fields. It has ...
QField : Attribute form not displaying correctly
I'm a student in the end of class internship and just found out about QField. I'm familiar with GIS so I didn't think I'd struggle so hard. I want to use QField for butterfly conservation, and will ...
"Rule-based" background color in QGIS attribute form containers?
In QGIS attribute form Drag and Drop Designer we can choose a backgroud color for widget containers (Tabs and Group boxes): Is it possible to have rule based background colors depending on some ...
What is slowing QGIS the most when opening form?
I made a complete form on QGIS, following the best way, according to me, to make it fast and easy to use. But, as I progressed in developing my form, QGIS went slower and slower to open it (almost 4 ...
Attribute form defaults: How to take over the settings directly when duplicating the layer (and not afterwards by copy-paste-styles)
I have a point-shapefile-layer with attribute form defaults for some fields, QGIS 3.16 (see image, red marks). If I now duplicate the layer (by exporting or by duplicating) these attribute form ...
Opening one corresponding related table in attribute form for selected feature in multipolygon in QGIS
I have MultiPolygon A with 9 features, each feature should be described by one non-spatial attribute table with 10 - 500 features. I tried to create 9 relations like A-to-Table1, A-to_Table2 ...A-to-...
How can we maintain attribute forms for a shape layer when shape layers are used with several project files
We create layers and for some we then also create attribute forms to handle automatic default values, unique values and value maps among other things. But when we add the same shape layer to a new ...
QGIS ValueMap - fill value AND description into parent layer
i have a layer with trees (points) and a CSV as value map with tree types. In the tree layer as well in th CSV i have a column with the latin tree name and another one with the german name (tree_latin;...
Getting unique values in a QGIS Expression
I'm using QGIS 3.4 attribute form to edit the widget type. I'm trying to retrieve "cab_no." field values (only unique values) from 'U_Cabinet' layer to use it in "fdt#" field in ...
Value relation widget in QGIS
I would like to create a cascading select in QGIS using the value relations widget. I'm using QGIS 3.14 (pi) and all layers are stored in a geopackage. The geopackage shown in this example can be ...
QGIS 3.10 Attribute form "default value" with current field values, but NOT update automatically
I want to have a default value from a current field (from another layer, but it is the same, when I use a current field from the current layer). And I DON'T want to update it automatically! After ...
Container 'Control visibility by expression' for relations
I have two relations in a project on QGIS 3.10. They have the same field ('fid') of the parent but different fields ('topo_part';'topo_part_loc') of the same child. I want to see these relations in ...
Debug In-dialog provided python code in QGIS attribute form 'Python Init Code Configuration'
In a QGIS layers attribute form configuration I have the following Python Init Code Configuration: Code in plain text: # -*- coding: utf-8 -*- from qgis.PyQt.QtWidgets import QWidget, QLineEdit ...
Right-align attribute aliases in QGIS attribute forms
I have an attribute form created with QGIS 'Drag and drop Designer' that looks like this: As can be seen, the attribute aliases (the labels on the left) are little longer because of some explanatory ...
Double cascading value relation in QGIS attribute form
I run a PostgreSQL database using QGIS as a frontend. I have a table in which I store archaeological finds related to sites. The finds-table has no geometry and just stores date. To be able to query ...