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: content/en/docs/appstore/modules/app-insights.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,22 @@ To import this module into your app, follow the instructions in [How to Use Mark
29
29
2. (Optional) Configure the constant **TEST_MODE**. If this is turned on, the survey will always show.
30
30
3. Save the changes.
31
31
32
-
4. Open the **Put Survey Widget On Template** folder, and place **Template_SurveyWidget** on the page where you would like the mini-survey to appear.
33
-
5. Open the **Show Survey** folder, and copy the **ShowSurvey_OnAction** nanoflow to your own module.
34
-
6. Set up the **ShowSurvey_OnAction** nanoflow as follows:
32
+
4. Open the **Put Survey Widget On Template** folder, and place **Template_SurveyWidget** on the page where you would like the mini-survey to appear. We recommend placing only one widget inside the master layout page.
33
+
5. Configure how the mini-survey will appear, either on-action or on-page load:
35
34
36
-
1. Double-click **Create String variable**, fill in the survey ID of the mini-survey, and then save the changes. You can find the survey ID on the [Settings](/developerportal/collaborate/product-insights/#survey-details-settings) tab or [Implementation](/developerportal/collaborate/product-insights/#survey-details-implementation) tab of the survey details page in **App Insights** in the Developer Portal.
37
-
2. Double-click **CHANGE ME**, add your microflow or nanoflow action here, then save the changes.
35
+
* For the on-action option:
36
+
37
+
1. Open the **Show Survey** folder, then copy the **ShowSurvey_OnAction** nanoflow to your own module.
38
+
1. In the nanoflow, double-click **Create String variable**, fill in the **Survey ID** of the mini-survey, and then save the changes. You can find the survey ID on the [Settings](/developerportal/collaborate/product-insights/#survey-details-settings) tab or [Implementation](/developerportal/collaborate/product-insights/#survey-details-implementation) tab of the survey details page in **App Insights** in the Developer Portal.
39
+
1. (Optional) Double-click **CHANGE ME**, add your microflow or nanoflow action, then save the changes.
40
+
1. Create a button that calls the **ShowSurvey_OnAction** nanoflow on the page where **Template_SurveyWidget** is placed. Mendix recommends renaming the flow to something that describes the original action.
38
41
39
-
7. Create a button that calls the **ShowSurvey_OnAction** nanoflow on the page where **Template_SurveyWidget** is placed. Mendix recommends renaming the flow to something that describes the original action.
40
-
8. In **App Explorer**, double-click **Security**, and add the **AppInsights_MiniSurvey.User** user role to all the system roles that use the mini-survey in the **App Security** dialog box.
42
+
* For the on-page load option:
43
+
44
+
1. Open the **Show Survey** folder, and copy the widget from **ShowSurvey_OnPageLoad** to your page.
45
+
1. Place this widget on any page you wish to show the survey (you can use multiple **Show Mini Survey On Page Load** widgets in your app to trigger many surveys).
46
+
1. Double-click the **Show Mini Survey On Page Load** widget, then fill in the **Survey ID**.
47
+
48
+
6. In **App Explorer**, double-click **Security**, and add the **AppInsights_MiniSurvey.User** user role to all the system roles that use the mini-survey in the **App Security** dialog box.
41
49
42
50
{{% alert color="info" %}}Once the start time of the mini-survey is reached, the mini-survey will start running, and all the target users of the mini-survey will receive the survey automatically.{{% /alert %}}
0 commit comments