Optional settings
Taking inspiration from the work done in Forms 10.2, Workflow 11 adds the ability to hide or disable, via configuration, all settings displayed in the Workflow backoffice section.
Why? Because while deep, granular control is brilliant for customizing Workflow to exactly meet your requirements, it has previously meant surfacing controls which should only be set once, or at least only modified by a developer who understands the impact of changing the property value.
Rather than making the decision for you as to which controls should be available in the backoffice, we’ve made everything configurable.
By default, nothing changes. All settings are visible and editable, even if that means potentially unexpected side effects. By updating your appsettings.json file, you can choose to set any property to readonly, or hide it entirely. Even better, it’s possible to set default values for any property.
Two dictionaries exist for settings configuration - General and ContentReviews - where the entry keys match the property aliases, and the value contains three settings:
- IsHidden: if set to true, hides the property in the backoffice
- IsReadOnly: if set to true, sets the property to readonly in the backoffice
- Value: if set, provides the value for the setting, overwriting any value previously set from the backoffice. The provided value is validated to ensure it matches the required type for the particular property.
For example, to prevent edits when a node is in a workflow, but still display the setting in the backoffice, and disable content reviews via save and hide the setting, the configuration would look like the below: