Skip to content

Update adding-a-workflowtype.md #7261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions 13/umbraco-forms/developer/extending/adding-a-workflowtype.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ The `Form` references the form the record is from and `FormState` provides its s

Other context, such as the current `HttpContext`, if needed can be passed as constructor parameters (for example: the `HttpContext` can be accessed by injecting `IHttpContextAccessor`).

## Field settings

Field settings that will be managed in the backoffice by editors adding workflows can be added to the C# class. These settings can be added as properties with a `Setting` attribute.

```csharp
[Setting("My Setting", Description = "Help text for the setting", View = "TextField", SupportsPlaceholders = true, DisplayOrder = 10)]
public virtual string MySetting { get; set; }
```

## Registering the workflow type

To use the new workflow type, you will need to register it as part of application startup.
Expand Down