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: 13/umbraco-forms/developer/themes.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,21 @@ public class MyComposer : IComposer
113
113
}
114
114
```
115
115
116
+
##### Removing the Default Email Template
117
+
118
+
If providing custom email templates, you may want to remove the one provided with Forms. You can do that via the same `EmailTemplates` collection.
119
+
120
+
```csharp
121
+
publicclassMyComposer : IComposer
122
+
{
123
+
publicvoidCompose(IUmbracoBuilderbuilder)
124
+
{
125
+
builder.EmailTemplates()
126
+
.Exclude<DefaultEmailTemplate>();
127
+
}
128
+
}
129
+
```
130
+
116
131
## Using a Theme
117
132
118
133
To use a theme with a Form use the "Insert Form" macro where you will be presented with the options of the form you wish to insert along with an option to pick a theme. This displays the list of theme folders found at `Views/Partials/Forms/Themes`.
Copy file name to clipboardExpand all lines: 15/umbraco-forms/upgrading/version-specific.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ For reference, the full details are listed here:
26
26
27
27
* The setting `FieldSettings:Recaptcha3:ShowFieldValidation` has a new default of `true`.
28
28
* The setting `Options:EnableMultiPageFormSettings` has a new default of `true`.
29
-
* The setting `FormDesign:RemoveProvidedEmailTemplate` has been removed (as adding and removing email templates can be more consistently handled using `EmailTemplateCollection`).
29
+
* The setting `FormDesign:RemoveProvidedEmailTemplate` has been removed (as adding and removing email templates can be more consistently handled using `EmailTemplateCollection` as described [here](../developer/themes.md#removing-the-default-email-template)).
0 commit comments