Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 13/umbraco-forms/developer/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ public class MyComposer : IComposer
}
```

##### Removing the Default Email Template

If providing custom email templates, you may want to remove the one provided with Forms. You can do that via the same `EmailTemplates` collection.

```csharp
public class MyComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.EmailTemplates()
.Exclude<DefaultEmailTemplate>();
}
}
```

## Using a Theme

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`.
Expand Down
15 changes: 15 additions & 0 deletions 14/umbraco-forms/developer/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,21 @@ public class MyComposer : IComposer
}
```

##### Removing the Default Email Template

If providing custom email templates, you may want to remove the one provided with Forms. You can do that via the same `EmailTemplates` collection.

```csharp
public class MyComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.EmailTemplates()
.Exclude<DefaultEmailTemplate>();
}
}
```

## Using a Theme

When rendering a form in a view file, you can specify which theme to use with the form.
Expand Down
15 changes: 15 additions & 0 deletions 15/umbraco-forms/developer/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,21 @@ public class MyComposer : IComposer
}
```

##### Removing the Default Email Template

If providing custom email templates, you may want to remove the one provided with Forms. You can do that via the same `EmailTemplates` collection.

```csharp
public class MyComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.EmailTemplates()
.Exclude<DefaultEmailTemplate>();
}
}
```

## Using a Theme

When rendering a form in a view file, you can specify which theme to use with the form.
Expand Down
2 changes: 1 addition & 1 deletion 15/umbraco-forms/upgrading/version-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For reference, the full details are listed here:

* The setting `FieldSettings:Recaptcha3:ShowFieldValidation` has a new default of `true`.
* The setting `Options:EnableMultiPageFormSettings` has a new default of `true`.
* The setting `FormDesign:RemoveProvidedEmailTemplate` has been removed (as adding and removing email templates can be more consistently handled using `EmailTemplateCollection`).
* The setting `FormDesign:RemoveProvidedEmailTemplate` has been removed (as adding and removing email templates can be more consistently handled using [`EmailTemplateCollection`](../developer/themes.md#removing-the-default-email-template)).

#### **Asynchronous Methods**

Expand Down
Loading