hi @Changal the short answer is yes you can restrict by group or collection.
I will share a way of doing it as I am sure there are many ways.
Objective
Set control to edit or visible based on the workflow step
Method
build a collection that will act, as a rule, to determine when a control must be edited or disabled.
Steps
- Create a gallery with 74 items to act as the steps: Formula Sequence(74)

- Create a local variable when the workflow step is achieved: Formula UpdateContext({wfStep: ThisItem.Value})
On the OnSelect Property

- Create a collection to host the rules: collection colRules:
id: unique identifier
type: type of rule 0, smaller than, 1 equals a value
eval: the criteria to determine whether it will be editable else disabled
(e.g., id: 0, type: 0, eval: [50] states if the wf is smaller than 50)
ClearCollect(colRules,
{id: 0, type: 0, eval: [50]}, // 0 = smaller
{id: 1, type: 1, eval: [20]}, // 1 = equals
{id: 3, type: 2, eval: [15, 16, 20, 23, 34]}, // 2 = in
{id: 4, type: 3, eval: [15, 16, 20, 23, 34]}, // 3 = not in
{id: 5, type: 4, eval: [15, 16]} // 4 = between
)
Set the edit and disable mode
Define the rule
_type as defined in colRules
_rulex as you need them
With(
{
_rule0: Index(Index(colRules, 1).eval, 1).Value,
_rule1: Index(Index(colRules, 2).eval, 1).Value,
_rule2: Index(colRules, 3).eval,
_type: 0 //select your rule
},
Switch(
true,
_type = 0, If(SomeGallery.Selected.Value < _rule0, DisplayMode.Edit, DisplayMode.Disabled),
_type = 1, If(SomeGallery.Selected.Value = _rule1, DisplayMode.Edit, DisplayMode.Disabled),
_type = 2, If(SomeGallery.Selected.Value in _rule2, DisplayMode.Edit, DisplayMode.Disabled)
)
)
Result

Hope it helps