Skip to content

Commit ca2527a

Browse files
Update adding-a-workflowtype.md
Added information on adding settings to workflows
1 parent 43060a7 commit ca2527a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

13/umbraco-forms/developer/extending/adding-a-workflowtype.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ The `Form` references the form the record is from and `FormState` provides its s
9696

9797
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`).
9898

99+
## Field settings
100+
101+
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.
102+
103+
```csharp
104+
[Setting("My Setting", Description = "Help text for the setting", View = "TextField", SupportsPlaceholders = true, DisplayOrder = 10)]
105+
public virtual string MySetting { get; set; }
106+
```
107+
99108
## Registering the workflow type
100109

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

0 commit comments

Comments
 (0)