Skip to content

Commit c7327bd

Browse files
authored
Add phone-call-link use case (#733)
* add phone-call-link page * add reference info widgets to phone call use case
1 parent be928aa commit c7327bd

File tree

9 files changed

+29
-4
lines changed

9 files changed

+29
-4
lines changed

src/.vitepress/sidebar/en.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ export default {
9090
{ text: 'Use Cases', link: '/layer/use-cases/',
9191
collapsed: true,
9292
items: [
93-
{ text: 'How to Open a File', link: '/layer/open-file/' },
94-
{ text: 'How to Use Hyperlinks', link: '/layer/external-link/' },
93+
{ text: 'How to Open a File', link: '/layer/open-file/' },
94+
{ text: 'How to Use Hyperlinks', link: '/layer/external-link/' },
9595
{ text: 'How to Open a Link to a Navigation App', link: '/layer/link-to-navigation/' },
96+
{ text: 'How to Use a Phone Call Link', link: '/layer/phone-call-link/' },
9697
{ text: 'How to Link Multiple Records to One Feature (1-N Relations)', link: '/layer/one-to-n-relations/' },
9798
{ text: 'How to Embed an Image', link: '/layer/embed-image/' },
9899
] },

src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ The ecosystem consist of various components:
9191
- [How to Open a File ](./layer/open-file/)
9292
- [How to Use Hyperlinks](./layer/external-link/)
9393
- [How to Open a Link to a Navigation App](./layer/link-to-navigation/)
94+
- [How to Use a Phone Call Link ](./layer/phone-call-link/)
9495
- [How to Link Multiple Records to One Feature](./layer/one-to-n-relations/)
9596
- [How to Embed an Image](./layer/embed-image/)
9697

src/layer/info-widgets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: HTML and Text widgets are not connected to a specific field of the
77

88
<QGISHelp ver="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, such as the Text or HTML widget. These widgets are also supported by <MainPlatformName />.
99

10-
HTML and Text widgets can be used, e.g., to display instructions in the form. They 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 also be used, for instance, to display [online images](../embed-image/) or [open local files](../open-file/).
10+
HTML and Text widgets can be used, e.g., to display instructions in the form. They 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 also be used, for instance, to display [online images](../embed-image/), [phone call link](../phone-call-link/) or [open local files](../open-file/).
1111

1212
|<div style="width:150px"> Widget </div> |Preview in the <MobileAppNameShort />|
1313
|:---:|:---:|

src/layer/link-to-navigation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Hyperlinks can be used in the attributes form in Mergin Maps mobile
77

88
Attributes forms can include clickable links that can be used to open a navigation app directly from the form in <MobileAppName />.
99

10-
:::tip
10+
:::tip Example project available
1111
Clone <MerginMapsProject id="documentation/forms-navigation-link" /> to follow this example!
1212
:::
1313

src/layer/phone-call-link/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
description: HTML widget can be used to initiate a phone call directly from the feature's form in Mergin Maps mobile app.
3+
---
4+
5+
# How to Use a Phone Call Link
6+
7+
The HTML widget can be used to display a link that will trigger a phone call directly from the form in <MobileAppName />.
8+
9+
:::tip Example project available
10+
Clone <MerginMapsProject id="documentation/phone-call-link" /> to see how this works.
11+
:::
12+
13+
Add the [HTML widget](../info-widgets/) to the **Attributes form** of your survey layer. Use the following configuration (replace `123-456-789` by the phone number you want to use):
14+
```
15+
<a href="tel:123-456-789">123-456-789</a>
16+
```
17+
18+
![QGIS Attributes form HTML widget with phone call link](./qgis-form-html-phone-call.webp "QGIS Attributes form HTML widget with phone call link")
19+
20+
In the <MobileAppNameShort />, the form now contains a link that can initiate a phone call.
21+
![Mergin Maps mobile app form with phone call link](./mobile-form-html-phone-call.webp "Mergin Maps mobile app form with phone call link")
22+
23+
72.6 KB
Loading
498 KB
Binary file not shown.
43.1 KB
Loading
386 KB
Binary file not shown.

0 commit comments

Comments
 (0)