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: docs/pages/using-nhs-notify/personalisation.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ You can send personalised messages by adding personalisation fields to a single
17
17
Use double brackets to add a personalisation field to your template. Do not include spaces in your personalisation fields. For example:
18
18
19
19
{% include components/inset-text.html
20
-
text='`Hello ((fullName)), your NHS Number is ((nhsNumber)). Your appointment is on ((appointmentDate)) at ((gpSurgery)).`'
20
+
text='Hello `((fullName))`, your NHS Number is `((nhsNumber))`. Your appointment is on `((appointmentDate))` at `((gpSurgery))`.'
21
+
classes='nhsuk-u-margin-top-2'
21
22
%}
22
23
23
24
You can read personalisation instructions while you’re editing a template.
@@ -37,7 +38,8 @@ You can use the following PDS fields:
37
38
- date
38
39
39
40
{% include components/inset-text.html
40
-
text='Make sure your personalisation fields match the PDS personalisation fields. This includes using the correct order of upper and lower case letters.'
41
+
text='Make sure your personalisation fields match the PDS personalisation fields. This includes using the correct order of upper and lower case letters.'
42
+
classes='nhsuk-u-margin-top-2'
41
43
%}
42
44
43
45
## Custom personalisation fields (your data)
@@ -94,7 +96,9 @@ text='
94
96
95
97
- New Surgery (short)
96
98
- The Health Centre, Knaresborough Road (medium)
97
-
- Church Avenue and Park Grove Medical Group Surgery (long)'
99
+
- Church Avenue and Park Grove Medical Group Surgery (long)
100
+
'
101
+
classes='nhsuk-u-margin-top-2'
98
102
%}
99
103
100
104
Follow these rules for your example data:
@@ -109,7 +113,8 @@ Follow these rules for your example data:
109
113
To add personalised links and URLs, include personalisation fields for both the link text and the URL in your template. For example:
110
114
111
115
{% include components/inset-text.html
112
-
text='`[((link_text))](((link_URL)))`'
116
+
text='`[((link_text))](((link_URL)))`'
117
+
classes='nhsuk-u-margin-top-2'
113
118
%}
114
119
115
120
### Fields to avoid for custom personalisation
@@ -129,11 +134,13 @@ If you use custom personalisation, do not use the following personalisation fiel
129
134
- template
130
135
131
136
{% include components/inset-text.html
132
-
text='Using these fields will cause custom personalisation to fail. This includes any variations, for example, if you add spaces, punctuation, and upper or lower case letters.'
137
+
text='Using these fields will cause custom personalisation to fail. This includes any variations, for example, if you add spaces, punctuation, and upper or lower case letters.'
138
+
classes='nhsuk-u-margin-top-2'
133
139
%}
134
140
135
141
You can include extra words in your custom personalisation fields to make them different to the fields to avoid. For example, if you wanted to include GP surgery phone number, your personalisation field could be:
0 commit comments