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/layer/checkbox/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The checkbox widget is handy when you want to set up a field that can have two v
8
8
9
9
|<divstyle="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
10
10
|:---:|:---:|
11
-
|[True/false checkbox](#true-false-checkbox-for-boolean-fields)||
11
+
| True/false checkbox ||
12
12
13
13
14
14
:::tip Example project available
@@ -21,7 +21,7 @@ Prefer a video? Here is a short tutorial about the checkbox widget:
21
21
22
22
## True/false checkbox for Boolean fields
23
23
24
-
If you have a field with a **Boolean** data type, QGIS assigns the checkbox widget type by default. It is also possible to use it for fields with [other data types](#checkbox-with-custom-values-yes-no).
24
+
If you have a field with a `Boolean` data type, QGIS assigns the checkbox widget type by default. It is also possible to use it for fields with [other data types](#checkbox-with-custom-values-yes-no).
25
25
26
26
1. Right-click on a layer, select **Properties** and go to the **Attributes form** tab.
27
27
2. In the list of **Available Widgets** select the field you want to work with (here: `checkbox`).
@@ -31,7 +31,7 @@ If you have a field with a **Boolean** data type, QGIS assigns the checkbox widg
31
31

32
32
33
33
## Checkbox with custom values (yes/no)
34
-
You might want to use the checkbox with custom values, such as Yes/No or On/Off. This is possible for fields with **Text** (string) data type:
34
+
You might want to use the checkbox with custom values, such as Yes/No or On/Off. This is possible for fields with `Text (string)` data type:
35
35
1. Right-click on a layer, select **Properties** and go to the **Attributes form** tab.
36
36
2. In the list of **Available Widgets** select the field you want to work with (here: `checkbox-string`).
37
37
3. In the **Widget Type** tab, select the **Checkbox** widget and define values for the *Checked* and for the *Unchecked* state. Here we use `Yes` and `No`.
Copy file name to clipboardExpand all lines: src/layer/date-time/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ description: Date or Date and Time widgets are used to record date and time, e.g
4
4
5
5
# Date and time
6
6
7
-
**Date** or **Date and Time** fields can be used to record date and time. The most common use is to record when a feature was created or updated. This can be done manually or automatically by using [default values](../default-values/).
7
+
Fields with `Date` or `Date and Time` data type can be used to record date and time. The most common use is to record when a feature was created or updated. This can be done manually or automatically by using [default values](../default-values/).
8
8
9
9
|<divstyle="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
10
10
|:---:|:---:|
11
-
|[Date/time](#date-time-widget)||
11
+
|Date/time ||
12
12
13
13
:::tip Example project available
14
14
Various options of setting up Date and Date&Time fields are included in this public project: <MerginMapsProjectid="documentation/form-widgets" />. Download or clone it to explore it in more detail.
Copy file name to clipboardExpand all lines: src/layer/numbers/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@ description: See how to set up Editable Range or Range Slider to record numbers
4
4
5
5
# Numbers
6
6
7
-
Number fields can be handled by the **Range** widget. Two options are supported by the <MobileAppNameShort />: [editable range](#range) and [slider](#slider).
7
+
Number fields can be handled by the **Range** widget that offers two options supported by the <MobileAppNameShort />: [editable range](#range) and [slider](#slider).
8
8
9
9
|<divstyle="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
10
10
|:---:|:---:|
11
-
|[Editable range](#range)||
12
-
|[Slider](#slider)||
11
+
| Editable range ||
12
+
| Slider ||
13
13
14
14
:::tip Example project available
15
15
This public project: <MerginMapsProjectid="documentation/form-widgets" /> uses various options for entering numbers. Download or clone it to see this setup.
Copy file name to clipboardExpand all lines: src/layer/qr-code/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ description: A field in the form can be set up for QR code scanning. Scan QR cod
4
4
5
5
# QR code
6
6
7
-
You can scan QR codes with your mobile device to fill in a field in the form.
7
+
You can scan QR codes with your mobile device to fill in a field in the form. The field data type should match the desired input, so if you want to scan say a link, you need a field with `Text (string)` data type.
8
8
9
9
|<divstyle="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
10
10
|:---:|:---:|
11
-
[QR code or barcode scanner](#qr-code-setup) |  |
11
+
QR code or barcode scanner |  |
12
12
13
13
:::tip Example project available
14
14
A QR code field is used in this public project: <MerginMapsProjectid="documentation/form-widgets" />. Download or clone it to see this setup.
Copy file name to clipboardExpand all lines: src/layer/value-select/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,17 @@ description: To select values from a drop-down menu in the form in Mergin Maps m
5
5
# Selecting Single or Multiple Values
6
6
[[toc]]
7
7
8
-
Selecting values from a drop-down menu is faster than typing them in manually and it also ensures that there are no typos or spelling variations.
8
+
Selecting values from a drop-down menu is faster than typing them in manually and it also ensures that there are no typos or spelling variations. Additionally, it is possible to create [drill-down (cascade) forms](#drill-down-forms), where a value selected in one field can affect the options available in another field.
9
9
10
10
|<divstyle="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
11
11
|:---:|:---:|
12
12
|[Drop-down menu with predefined values](#value-map)||
13
13
|[Drop-down menu with values from another table, allowed multiple selection](#value-relation)||
14
14
15
-
To select values from a drop-down menu in the form, you can use the [Value Map](#value-map) or [Value Relation](#value-relation) widgets in QGIS. Additionally, it is possible to create [drill-down (cascade) forms](#drill-down-forms), where a value selected in one field can affect the options available in another field.
15
+
To select values from a drop-down menu in the form, you can use the Value Map or Value Relation widgets in QGIS. The field data type depends on the values that should be stored in the field, usually `Text (string)` or `Integer`. To [allow multiple selection](#value-relation), the field needs to be of `Text (string)` data type).
16
16
17
17
The **Value Relation** widget is a bit more complex as it uses another layer (usually a non-spatial table) as a source of values. However, it provides some benefits when compared to the simpler **Value Map** setup, such as:
18
-
- Option to select multiple values from the list (in this case, the field needs to be of `text` data type).
18
+
- Option to select multiple values from the list
19
19
- The table used for the drop-down menu can be edited in the <MobileAppNameShort />. For example, if there is a value missing, you can [create it](../../field/mobile-features/#add-or-edit-non-spatial-features) during the field survey and use it immediately. The *Value Map* options can be managed only through QGIS.
20
20
- Searching the values: if you have a large list of values, it will become cumbersome to find the right value. With the *Value Relation* widget, you have the option to search for values in the list in the <MobileAppNameShort />.
0 commit comments