Skip to main content

Questions tagged [attribute-form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

Showing attribute-form with objects of another shapefile in QGIS

QGIS 3.34.6: I have two layers, layer 1 shows different bridges, and layer 2 contains different events at these bridges in different years. Each event is one object in layer 2. I would like to get an ...
Bertram's user avatar
  • 483
0 votes
2 answers
75 views

Share shapefile or table including its attribute form configuration in QGIS

I'd like to prepare a point dataset in QGIS (shp or even better a table in a gpkg), with some predefined configuration of the attribute form, which I can share with my co-workers. I want - as soon as ...
pottsbill's user avatar
2 votes
1 answer
37 views

Populate a value automatically based on the current value of another attribute using a QGIS form

I have two tables: tableA with two attributes (city names and cityID). In tableB, I have several attributes, including the same attributes as in tableA. In tableB, when I add a new entity and fill in ...
GisUser's user avatar
  • 647
0 votes
0 answers
52 views

Autoincrementing new features in text field for QGIS and QFIELD

I am trying to build a project/template for QFIELD for our data collection in the field. I got most of it working but one feature seems to challenge me beyond my comprehension. My layer file has ...
Johannes314's user avatar
0 votes
0 answers
28 views

QGIS - Attachment with a photo in the attributes does not show the photo and the button to open the file dialog

I received a QGIS map project with data that I needed to update. So I chose the Change data source layer and selected the updated data. Now I'm supposed to continue updating the data, but the upload ...
Br3ndys_cz's user avatar
2 votes
1 answer
66 views

QGIS Forms Range Widget steps

I am trying to use the range widget in QGIS attribute forms to allow the user to enter values in steps on 0.25 so values of (0.25,0.5,0.75,1,1.25...) The settings above result in values of 0.49, 0.74,...
Sethinacan's user avatar
  • 1,724
4 votes
1 answer
113 views

How to configure the Attributtes forms to show the historic table related to 'n' records in QGIS

I have a point geometry layer that correspond to objects to street lamps. For each point I have the key field "CODE_ID". On the other hand, I have a maintenance history table. This table ...
Ingrid Ingravida's user avatar
2 votes
2 answers
79 views

QGIS Value Relation Widget saves not the KEY COLUMN values but the VALUE COLUMN values in the attribute table

As far as I know, the "Value Relation Widget" is supposed to store the records from the field designated as KEY COLUMN in the attribute table, while the records from the field designated as ...
Chavdar Kirilov's user avatar
0 votes
0 answers
51 views

QGIS-QField Form mode: How do I export/register in JPEG/PDF?

I used the QField app to take data on the field with a customize form made with the Attribute Form and different type of widget. Now, back at the office, I exported my data on QGIS and I want to ...
Pierre-yves Laperrière's user avatar
1 vote
1 answer
70 views

QGIS form action that allows the user to select a feature from another layer to set a field

I'm trying to create a QGIS action that will be used on an attribute form to get a value from a feature on another target layer and set a field on the current form. I have it mostly working (based ...
GammaGames's user avatar
1 vote
1 answer
111 views

Setting dropdown on feature attribute form using plugin

I have built a plugin (PyQGIS) where once user login, it will display the map with layer retrieved from database. Let say, layer named lot_k is enabled for editing then new polygon is added for this ...
AJ 88's user avatar
  • 13
7 votes
1 answer
182 views

Auto incremental field filled with filtered by other field value in QGIS Attribute Form

From a point geometry layer with two categories "A" and "B", when I enter new points, I first choose the category of the "CATEG" field with a listbox, and then I use the ...
Ingrid Ingravida's user avatar
1 vote
1 answer
90 views

Sequential labelling with default value in attribute forms in QGIS

I'm building an attribute form in QGIS (3.24.1) for adding new features to a layer. I have a field "Quick ref ID" which I want to have a default value. The default value needs to be in the ...
HeyItsRobin's user avatar
1 vote
1 answer
150 views

QGIS value relation widget with generic relation for identical dropdown filter

Set up I have a point layer ('Baum') to collect data with 3 attributes ('mass_typ', 'mass_grund', 'veg_typ'). I want the attribute 'veg_typ' to have a dropdown filtered according to the two other ...
chocolatebarakiraice's user avatar
4 votes
2 answers
307 views

Adding meaningful text to integer codes

I have a lot of attributes being coded as integers like 0 meaning 'No', 1 meaning 'Perhaps', 2 meaning 'Yes' etc. I would like to show the text instead in an attribute table in a layout. With just one ...
Morten's user avatar
  • 183
1 vote
2 answers
86 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
  • 3,002
0 votes
1 answer
61 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
  • 3,002
8 votes
2 answers
273 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,326
4 votes
1 answer
221 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
2 votes
1 answer
54 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
  • 93
0 votes
1 answer
413 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
474 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
196 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
341 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
  • 691
0 votes
0 answers
27 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
  • 497
0 votes
0 answers
60 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
2 votes
2 answers
332 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
  • 23
1 vote
0 answers
29 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
  • 3,002
5 votes
2 answers
3k 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
10 votes
1 answer
6k 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
658 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
  • 175
1 vote
0 answers
566 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
3 votes
1 answer
384 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
209 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
7 votes
1 answer
2k 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,618