You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gis/features/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ In [Creating a Project in QGIS](../../tutorials/creating-a-project-in-qgis/) you
19
19
20
20
## Survey layers
21
21
Vector layers can be used as survey layers in your <MainPlatformName /> project. You can apply styles and set up the forms to make your field survey easier.
22
-
The same applies for non-spatial layers that can be used on their own to add new data or linked to a spatial layer, e.g. when linking multiple [photos](../../layer/photos/#how-to-attach-multiple-photos-to-features) or [records](../../layer/one-to-n-relations/). They can be also used in [value relation](../../layer/value-select/#value-relation) widgets.
22
+
The same applies for non-spatial layers that can be used on their own to add new data or linked to a spatial layer, e.g. when linking multiple [photos](../../layer/photos/#how-to-attach-multiple-photos-to-one-feature) or [records](../../layer/one-to-n-relations/). They can be also used in [value relation](../../layer/value-select/#value-relation) widgets.
23
23
24
24
Making changes in the data schema of layers can lead to issues in the synchronisation process. Be careful to [**deploy the revised project properly**](../../manage/deploy-new-project/). Design the data schema carefully when creating a layer to avoid the need to change it later.
Copy file name to clipboardExpand all lines: src/layer/form-widgets/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,5 +36,5 @@ Here is an overview of widgets that are commonly used both in QGIS and the <Mobi
36
36
|Value Map |[Drop-down menu with predefined values](../value-select/#value-map)||
37
37
|Value Relation |[Drop-down menu with values from another table](../value-select/#value-relation)||
38
38
|Attachment |[Photos from device's camera or gallery](../photos)||
39
-
|Relations - Gallery |[Multiple photos from device's camera or gallery](../photos/#how-to-attach-multiple-photos-to-features)||
39
+
|Relations - Gallery |[Multiple photos from device's camera or gallery](../photos/#how-to-attach-multiple-photos-to-one-feature)||
40
40
| Text and HTML Widgets |[Informational Widgets](../info-widgets/)||
Copy file name to clipboardExpand all lines: src/layer/info-widgets/index.md
+18-21Lines changed: 18 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,17 @@
1
1
# Informational Widgets
2
2
[[toc]]
3
3
4
-
## Display instructions in the form using Text and HTML widget
5
-
Sometimes, you may want to include instructions or tips for surveyors in your forms. <QGISlink=""text="QGIS" /> offers Text and HTML widgets that can be used for this purpose. Your text instructions can include [expressions and field values](#using-expressions-in-text-and-html-widgets) as well. The HTML widget supports various [HTML tags](https://doc.qt.io/qt-6/richtext-html-subset.html#supported-tags), so it can be also used, for instance, to display [online images](#using-html-widget-to-display-online-images-and-other-online-resources).
4
+
<QGISHelpver="latest"link="/user_manual/working_with_vector/vector_properties.html#other-widgets"text="QGIS" /> also offers widgets that can be added to the form to display values or text, but are not connected to a specific field of the layer. <MainPlatformName /> supports the HTML, Text and [Spacer](../form-layout/#spacer-widget) widget.
5
+
6
+
HTML and Text widgets can be used, e.g., to [display instructions](#text-and-html-widget) in the form. The HTML widget supports various [HTML tags](https://doc.qt.io/qt-6/richtext-html-subset.html#supported-tags), so it can be also used, for instance, to display [online images](#using-html-widget-to-display-online-images-and-other-online-resources) or [open local files](#using-html-widget-to-open-local-files).
7
+
8
+
|<divstyle="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
9
+
|:---:|:---:|
10
+
[Text and HTML Widgets](#text-and-html-widget) |  |
11
+
12
+
13
+
## Text and HTML widget
14
+
The **Text** and **HTML widgets** provide an option to include instructions or tips for surveyors in your attributes forms. These text instructions can include [expressions and field values](#using-expressions-in-text-and-html-widgets) as well.
6
15
7
16
These widgets can be found in **Available Widgets** in the **Other Widgets** section when using the [Drag and Drop Designer](../form-layout/#qgis-drag-and-drop-designer).
8
17

@@ -16,15 +25,15 @@ If you prefer your text to be formatted, you may do so in the **HTML** widget. H
16
25
...and this is how the Text and HTML widgets look like in the form in QGIS (left) and in the mobile app (right).
17
26

18
27
19
-
## Using expressions in Text and HTML widgets
28
+
###Using expressions in Text and HTML widgets
20
29
Expressions and variables can be used both in the Text and the HTML widget.
21
30
22
-

23
-
24
-
:::tip
31
+
:::tip Example project available
25
32
Clone <MerginMapsProjectid="documentation/form_cascade" /> to follow this example.
26
33
:::
27
34
35
+

36
+
28
37
1. When configuring the Text or HTML widget, click on the **Expression Builder** button
29
38
2. Enter the expression that will be used in your text and click **OK**.
30
39
@@ -33,6 +42,7 @@ Clone <MerginMapsProject id="documentation/form_cascade" /> to follow this examp
33
42
3. Click on the **+** button to add the expression to the text.
34
43
35
44
Here, we configured the widget with this text:
45
+
36
46
`Make sure the number plate [% "VRP" %] is visible in the photo.`
37
47
38
48
In this case, `VRP` is the name of a field aliased as `Vehicle Registration Plate` in the form.
@@ -42,7 +52,7 @@ Clone <MerginMapsProject id="documentation/form_cascade" /> to follow this examp
42
52
... and this is how it works during the field survey. `[% "VRP" %]` expression displays the current value of the `Vehicle Registration Plate` field.
43
53

44
54
45
-
## Using HTML widget to displayonlineimagesandotheronlineresources
55
+
## Display online images and other online resources using HTML widget {#using-html-widget-to-display-online-images-and-other-online-resources}
46
56
The **HTML widget** can be also used to display online images in the mobile app or open online resources, such as PDF files, videos or websites, in the browser of your device.
47
57
48
58
::: tip
@@ -73,7 +83,7 @@ QGIS may not display the preview of the online image if you use QGIS 3.36 or hig
73
83
:::
74
84
75
85
76
-
## Using HTML widget to openlocalfiles
86
+
## Open local files using HTML widget {#using-html-widget-to-open-local-files}
77
87
The HTML widget can also be used to open local files: for instance, a locally stored PDF file can be opened from within the form during the survey.
78
88
79
89
::: tip
@@ -97,16 +107,3 @@ Local files can be displayed in the form also using [default values](../open-fil
97
107
98
108
In the <MerginMapsProjectid="documentation/forms-display-images-and-files" /> project, you can explore and compare both alternatives.
99
109
:::
100
-
101
-
## Spacer widget
102
-
<Badgetext="since QGIS 3.30"type="tip"/>
103
-
The Spacer widget can be useful if you want to have some space between the fields in your form or add a horizontal line.
104
-
105
-
It can be found in *Available Widgets* in the *Other Widgets* section when using the [Drag and Drop Designer](../form-layout/#qgis-drag-and-drop-designer).
106
-

107
-
108
-
When adding the spacer widget to the form, there is an option to check the **Draw horizontal line** option. Otherwise, a vertical space will be added to the form.
0 commit comments