Skip to content

Commit 74df3f5

Browse files
Update app-insights.md
added instructions for new product features
1 parent f7995bd commit 74df3f5

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

content/en/docs/appstore/modules/app-insights.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,24 @@ To import this module into your app, follow the instructions in [How to Use Mark
2929
2. (Optional) Configure the constant **TEST_MODE**. If this is turned on, the survey will always show.
3030
3. Save the changes.
3131

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 1 widget inside the master layout page.
33+
34+
5. There are 2 methods to trigger the mini survey to show.
35+
1. On Action
36+
2. On Page Load
37+
38+
39+
6. On Action: Open the **Show Survey** folder, Copy the **ShowSurvey_OnAction** nanoflow to your own module. Set up the **ShowSurvey_OnAction** nanoflow as follows:
3540

3641
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.
42+
2. (Optional) Double-click **CHANGE ME**, add your microflow or nanoflow action here, then save the changes.
43+
3. 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.
44+
45+
7. On Page Load: Open the **Show Survey** folder, Copy the widget from ‘ShowSurvey_OnPageLoad’ to your page.
46+
1. Place this widget on any page you wish to show the survey.
47+
2. Double click the 'Show Mini Survey On Page Load' widget and Enter the Survey ID.
48+
3. You can use multiple 'Show Mini Survey On Page Load' widgets in your project to trigger many surveys.
3849

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.
4050
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.
4151

4252
{{% 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

Comments
 (0)