In the situation below you have two fields within a gallery item with data source="DataSource"
Field A is a dropdown and field B is a text input which can variably change display state based off the column decision (Field A allows selection of the decision).
Option1
OnChange Property of Field A :
Patch(DataSource,ThisItem,{'Decision':FieldA.Selected.Value});
If(ThisItem.'Decision'<>[@'Decision Choices'].Successful,
FieldB.DisplayMode=DisplayMode.View, FieldB.DisplayMode=DisplayMode.Edit
)
Vs
Option 2
OnChange Property of Field A :
Patch(DataSource,ThisItem,{'Decision':FieldA.Selected.Value});
Display Property of Field B:
If(ThisItem.'Decision'<>[@'Decision Choices'].Successful, DisplayMode.View, DisplayMode.Edit
)