|
| 1 | +--- |
| 2 | +title: Confirmation messages |
| 3 | +sidebar_position: 2 |
| 4 | +tags: |
| 5 | +- Content style guide |
| 6 | +- UX Writing |
| 7 | +--- |
| 8 | +import {ValidExample, InvalidExample } from '@site/src/components'; |
| 9 | + |
| 10 | +Confirmation messages prompt people to confirm actions that have significant consequences or are difficult to undo. They can also help prevent errors or unexpected results by verifying user intent before proceeding with an action. |
| 11 | + |
| 12 | +Clear and concise confirmation messages help people feel more confident and in control of their actions within the Moodle products. |
| 13 | + |
| 14 | +## Related components |
| 15 | + |
| 16 | +[HTML modal](https://componentlibrary.moodle.com/admin/tool/componentlibrary/docspage.php/moodle/components/dom-modal/) |
| 17 | + |
| 18 | +## Basic guidelines |
| 19 | + |
| 20 | +- Address a single task. |
| 21 | +- Ask a clear, specific question. |
| 22 | +- Provide clear options to either confirm or cancel the action. |
| 23 | +- Explain the consequences of the action so people can make an informed decision. |
| 24 | + |
| 25 | +## Content |
| 26 | + |
| 27 | +### Title |
| 28 | + |
| 29 | +The title or heading of a confirmation message should focus only on one task, and mention the specific action that the user wants to perform. |
| 30 | + |
| 31 | +<ValidExample title="Do"> |
| 32 | + |
| 33 | +**Remove grade?** |
| 34 | + |
| 35 | +</ValidExample> |
| 36 | + |
| 37 | +<InvalidExample title="Don't"> |
| 38 | + |
| 39 | +**Confirm action?** |
| 40 | + |
| 41 | +</InvalidExample> |
| 42 | + |
| 43 | +Ask a clear, unambiguous question. |
| 44 | + |
| 45 | +<ValidExample title="Do"> |
| 46 | + |
| 47 | +**Delete question?** |
| 48 | + |
| 49 | +</ValidExample> |
| 50 | + |
| 51 | +<InvalidExample title="Don't"> |
| 52 | + |
| 53 | +**Confirmation** |
| 54 | + |
| 55 | +</InvalidExample> |
| 56 | + |
| 57 | +<ValidExample title="Do"> |
| 58 | + |
| 59 | +**Send notification?** |
| 60 | + |
| 61 | +</ValidExample> |
| 62 | + |
| 63 | +<InvalidExample title="Don't"> |
| 64 | + |
| 65 | +**Warning** |
| 66 | + |
| 67 | +</InvalidExample> |
| 68 | + |
| 69 | +Don't include articles like 'a', 'an' or 'the', so that the question is short and easy to scan. |
| 70 | + |
| 71 | +### Description |
| 72 | + |
| 73 | +The description should explain the consequences of the action and share additional details that enable people to make a confident decision. |
| 74 | + |
| 75 | +<ValidExample title="Do"> |
| 76 | + |
| 77 | +**Delete entry?** |
| 78 | +This will delete the entry 'My first blog post'. |
| 79 | + |
| 80 | +</ValidExample> |
| 81 | + |
| 82 | +<InvalidExample title="Don't"> |
| 83 | + |
| 84 | +**Delete entry?** |
| 85 | +Are you sure you want to delete the blog post? |
| 86 | + |
| 87 | +</InvalidExample> |
| 88 | + |
| 89 | +Don't repeat information from the title. |
| 90 | + |
| 91 | +<ValidExample title="Do"> |
| 92 | + |
| 93 | +**Remove account 'Barbara Gardner'?** |
| 94 | +This account and its data on the site [site name] will be removed from the app on this device. |
| 95 | + |
| 96 | +</ValidExample> |
| 97 | + |
| 98 | +<InvalidExample title="Don't"> |
| 99 | + |
| 100 | +**Remove account 'Barbara Gardner'?** |
| 101 | +Are you sure you want to remove this account? |
| 102 | + |
| 103 | +</InvalidExample> |
| 104 | + |
| 105 | +Save "Are you sure?" for actions that have very serious consequences. For example, actions that could prevent a course or activity from working properly, or deleting something that can't be retrieved from the recycle bin. |
| 106 | + |
| 107 | +<ValidExample title="Do"> |
| 108 | + |
| 109 | +**Delete tool?** |
| 110 | +This tool is currently being used in at least one activity in your course. If you delete this tool, the activities that use it will no longer work. Are you sure you want to delete the tool? |
| 111 | + |
| 112 | +</ValidExample> |
| 113 | + |
| 114 | +<InvalidExample title="Don't"> |
| 115 | + |
| 116 | +**Delete activity?** |
| 117 | +Are you sure you want to delete the activity? |
| 118 | + |
| 119 | +</InvalidExample> |
| 120 | + |
| 121 | +### Calls to action |
| 122 | + |
| 123 | +Calls to action (CTAs) should be clear and simple, and offer a straightforward way out. |
| 124 | + |
| 125 | +<ValidExample title="Do"> |
| 126 | + |
| 127 | +**Delete downloaded data?** |
| 128 | +Cancel | Delete |
| 129 | + |
| 130 | +</ValidExample> |
| 131 | + |
| 132 | +<InvalidExample title="Don't"> |
| 133 | + |
| 134 | +**Delete downloaded data?** |
| 135 | +Cancel | Continue |
| 136 | + |
| 137 | +</InvalidExample> |
| 138 | + |
| 139 | +<InvalidExample title="Don't"> |
| 140 | + |
| 141 | +**Delete downloaded data?** |
| 142 | +No | Yes |
| 143 | + |
| 144 | +</InvalidExample> |
| 145 | + |
| 146 | +Use the same verb in both the title and the confirmation button to make the content more scannable and summarise outcomes. |
| 147 | + |
| 148 | +<ValidExample title="Do"> |
| 149 | + |
| 150 | +**Move** selected activities? |
| 151 | +Cancel | **Move** |
| 152 | + |
| 153 | +</ValidExample> |
| 154 | + |
| 155 | +<InvalidExample title="Don't"> |
| 156 | + |
| 157 | +**Move** selected activities? |
| 158 | +Cancel | **Continue** |
| 159 | + |
| 160 | +</InvalidExample> |
| 161 | + |
| 162 | +<InvalidExample title="Don't"> |
| 163 | + |
| 164 | +**Delete** tool? |
| 165 | +Cancel | **Remove** |
| 166 | + |
| 167 | +</InvalidExample> |
| 168 | + |
| 169 | +Avoid 'cancelling cancellations' |
| 170 | + |
| 171 | +<ValidExample title="Do"> |
| 172 | + |
| 173 | +**Cancel booking?** |
| 174 | +Keep my booking | Cancel booking |
| 175 | + |
| 176 | +</ValidExample> |
| 177 | + |
| 178 | +<InvalidExample title="Don't"> |
| 179 | + |
| 180 | +**Cancel subscription?** |
| 181 | +Cancel | Confirm cancellation |
| 182 | + |
| 183 | +</InvalidExample> |
0 commit comments