Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Last active March 2, 2022 16:22
Show Gist options
  • Save BrianMRO/ca76dab25d07b03c310b87337285bb11 to your computer and use it in GitHub Desktop.
Save BrianMRO/ca76dab25d07b03c310b87337285bb11 to your computer and use it in GitHub Desktop.
Workflow - Control Fields
states.Add<State.hold>(flowState => flowState
.WithActions(actions =>
{
actions.Add(removeHold, a => a.IsDuplicatedInToolbar());
})
.WithFieldStates(fields =>
{
fields.AddAllFields<CMMSWorkOrder>();
fields.AddField<hold>(c => c.IsHidden());
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment