|
6 | 6 | - Tutorials,/tutorials
|
7 | 7 | - Configuring client accounts to only edit their own form data
|
8 | 8 | prev: Add hidden mapping field,/tutorials/client_accounts_edit_own_data_only/hidden_mapping_field/
|
9 |
| -next: Create view showing all submissions,/tutorials/client_accounts_edit_own_data_only/all_submissions_view/ |
| 9 | +next: Related links,/tutorials/client_accounts_edit_own_data_only/links/ |
10 | 10 | categories: tutorial
|
11 | 11 | tags: permissions,accounts,views
|
12 | 12 | ---
|
13 | 13 |
|
14 | 14 | {% include open_section.html nav='nav_client_accounts_edit_own_data_only.html' selected='configure_form_view' nav_width=3 %}
|
15 | 15 |
|
16 | 16 | <p>
|
17 |
| - The next step is to configure a View: |
| 17 | + The next step is to configure one of your Views to: |
18 | 18 | </p>
|
19 | 19 |
|
20 | 20 | <ol>
|
21 |
| - <li>Automatically store what Form Tools account created the submission.</li> |
22 |
| - <li>Set the view to <i>only show submissions for the current client account.</i></li> |
| 21 | + <li>automatically store what Form Tools account created the submission, and</li> |
| 22 | + <li>only show submissions for the current client account.</li> |
23 | 23 | </ol>
|
24 | 24 |
|
25 | 25 | <h3>Which View?</h3>
|
26 | 26 |
|
27 | 27 | <p>
|
28 |
| - You can read more about <a href="{{site.baseurl}}/userdoc/views/">Views here</a>, but the important things to know |
29 |
| - are: you can create as many Views as you want; each View can be configured differently to show different form data; |
30 |
| - by default, every new Form gets a new View created along with it called "All submissions". |
31 |
| -</p> |
32 |
| - |
33 |
| -<p> |
34 |
| - For this tutorial, you can edit any View you'd like - so perhaps just make these changes default All Submissions |
35 |
| - view. You can rename it or add more Views later once you get a better feel for it. |
| 28 | + You can read more about <a href="{{site.baseurl}}/userdoc/views/">Views here</a>, but for this tutorial, you can |
| 29 | + edit any View you'd like - so perhaps just make these changes to the default <i>All Submissions</i> view. You can |
| 30 | + rename it or add more Views later once you get a better feel for how it all works. |
36 | 31 | </p>
|
37 | 32 |
|
38 | 33 | <h3>Editing the View</h3>
|
@@ -71,24 +66,40 @@ <h4>Tracking show created the submission</h4>
|
71 | 66 | </ul>
|
72 | 67 |
|
73 | 68 | <p>
|
74 |
| - What you've just done is configure your View to store the account ID of whatever user just created the form |
75 |
| - through the Form Tools interface. As mentioned before, submissions created from an external, API or Form Builder |
| 69 | + You've now configured your View to store the account ID of whatever user just created the form through the Form |
| 70 | + Tools interface (admin or client). As mentioned before, submissions created from an external, API or Form Builder |
76 | 71 | form won't have this value populated: it's only for submissions created within Form Tools.
|
77 | 72 | </p>
|
78 | 73 |
|
79 | 74 |
|
80 | 75 | <h4>Making the View only show submissions for the current user</h4>
|
81 | 76 |
|
| 77 | +<p> |
| 78 | + {% include screenshot.html item="tutorial-client-map-edit-view-filters-tab.png" %} |
| 79 | + Click on the Filters subtab, add a row in the Client Map filters section with the following information: |
| 80 | +</p> |
82 | 81 |
|
| 82 | +<ul> |
| 83 | + <li> |
| 84 | + <b>Field</b>: <i>Account ID</i> (this is the field you added earlier) |
| 85 | + </li> |
| 86 | + <li> |
| 87 | + <b>Operator</b>: <i>Equals</i> |
| 88 | + </li> |
| 89 | + <li> |
| 90 | + <b>Client Field</b>: <i>ID</i>. |
| 91 | + </li> |
| 92 | +</ul> |
83 | 93 |
|
84 |
| -{% include close_section.html %} |
85 |
| - |
86 |
| - |
87 |
| - |
88 |
| - |
89 |
| - |
90 |
| - |
91 |
| - |
| 94 | +<p> |
| 95 | + This tells the View to only show data where your new field contains the same ID as the client account. To test this, |
| 96 | + try going to the Accounts page and click the Login link for that user. |
| 97 | +</p> |
92 | 98 |
|
| 99 | +<div class="alert alert-info"> |
| 100 | + <b>Note</b>: Client Map filters are just that: for clients! If you access this view through an administrator |
| 101 | + account the client map filters will not apply: you will see all results. |
| 102 | +</div> |
93 | 103 |
|
94 | 104 |
|
| 105 | +{% include close_section.html %} |
0 commit comments