As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [attribute-form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
55 views

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 ...
sn1ks's user avatar
  • 2,595
0 votes
1 answer
35 views

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, ...
sn1ks's user avatar
  • 2,595
8 votes
2 answers
142 views

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 ...
MartinMap's user avatar
  • 8,137
4 votes
1 answer
97 views

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 ...
Patrice Carbonneau's user avatar
1 vote
1 answer
32 views

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 ...
Donny's user avatar
  • 73
0 votes
1 answer
249 views

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 ...
Marcelo Franco Patané Júnior's user avatar
2 votes
1 answer
260 views

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 ...
Thomas G's user avatar
2 votes
1 answer
105 views

"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 ...
Jochen Schwarze's user avatar
2 votes
0 answers
214 views

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 ...
Giene's user avatar
  • 387
0 votes
0 answers
22 views

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 ...
jaysigg's user avatar
  • 477
0 votes
0 answers
53 views

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-...
Olha Marinich's user avatar
1 vote
2 answers
152 views

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 ...
Totte's user avatar
  • 13
1 vote
0 answers
27 views

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;...
sn1ks's user avatar
  • 2,595
5 votes
2 answers
2k views

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 ...
Ahmed Alaa's user avatar
8 votes
1 answer
5k views

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 ...
Oliver Burdekin's user avatar
3 votes
1 answer
431 views

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 ...
Nane's user avatar
  • 165
1 vote
0 answers
413 views

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 ...
Vitantotto's user avatar
2 votes
1 answer
220 views

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 ...
Jochen Schwarze's user avatar
3 votes
1 answer
181 views

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 ...
Jochen Schwarze's user avatar
6 votes
1 answer
1k views

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 ...
C.-F. Vintar's user avatar
  • 1,548