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: powerapps-docs/maker/canvas-apps/functions/function-showerror.md
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
-
title: ShowError function | Microsoft Docs
3
-
description: Reference information, including syntax and examples, for the ShowError function in Power Apps
2
+
title: Notify function | Microsoft Docs
3
+
description: Reference information, including syntax and examples, for the Notify function in Power Apps
4
4
author: gregli-msft
5
5
manager: kvivek
6
6
ms.service: powerapps
7
7
ms.topic: reference
8
8
ms.custom: canvas
9
9
ms.reviewer: tapanm
10
-
ms.date: 06/05/2018
10
+
ms.date: 02/28/2020
11
11
ms.author: gregli
12
12
search.audienceType:
13
13
- maker
@@ -18,7 +18,7 @@ search.app:
18
18
Displays a banner message to the user.
19
19
20
20
## Description
21
-
The **Notify** function displays a banner message to the user at the top of the screen, overlaying what is currently displayed.
21
+
The **Notify** function displays a banner message to the user at the top of the screen, overlaying what is currently displayed. The notification will remain until the user dismisses it, another notification replaces it, or the timeout expires which defaults to 10 seconds.
22
22
23
23
An appropriate color and icon are used depending on the type of the message. The type is specified by the second argument to the function:
24
24
@@ -42,10 +42,11 @@ Power Apps can also send push notifications using an entirely different mechanis
42
42
Note: This function was previously named **ShowError** when it could only display error messages.
**Message* – Required. Message to display to the user.
48
-
**NotificationType* – Optional. Type of the message to display from the table above. The default is **NotificationType.Information**.
48
+
**NotificationType* – Optional. Type of the message to display from the table above. The default is **NotificationType.Information**.
49
+
**Timeout* – Optional. Number of milliseconds to wait before automatically dismissing the notification. The default is 10 seconds (or 10,000 milliseconds). The notification will be displayed indefinitely with a *Timeout* of 0.
49
50
50
51
## Examples
51
52
@@ -59,7 +60,7 @@ Note: This function was previously named **ShowError** when it could only displa
59
60
60
61
3. Click or press the button.
61
62
62
-
Each time the button is clicked, the message **Hello, World** is displayed to the user as informational.
63
+
Each time the button is clicked, the message **Hello, World** is displayed to the user as informational. It will dismiss automatically in 10 seconds (default timeout) if the user does not dismiss it or press the button again.
63
64
64
65

65
66
@@ -69,26 +70,26 @@ Note: This function was previously named **ShowError** when it could only displa
69
70
70
71
5. Click or press the button.
71
72
72
-
Now each time the button is clicked, the message **Hello, World** is displayed to the user as an error.
73
+
Now each time the button is clicked, the message **Hello, World** is displayed to the user as an error. It will dismiss automatically in 10 seconds (default timeout) if the user does not dismiss it or press the button again.
73
74
74
75

75
76
76
77
4. Change the type of message to indicate a warning. Change the second argument in our formula:
Now each time the button is clicked, the message **Hello, World** is displayed to the user as a warning.
83
+
Now each time the button is clicked, the message **Hello, World** is displayed to the user as a warning. It will dismiss automatically in 4 seconds (4,000 milliseconds) if the user does not dismiss it or press the button again.
83
84
84
85

85
86
86
87
4. Change the type of message to indicate success. Change the second argument in our formula:
Now each time the button is clicked, the message **Hello, World** is displayed to the user as success.
93
+
Now each time the button is clicked, the message **Hello, World** is displayed to the user as success. With a **0** timeout, the notification will only be dismissed by the user or by pressing the button again.
93
94
94
95

0 commit comments