Hi,
I have a choice field/datacard with the default property -
If(
EditForm1.Mode = FormMode.New,
{Value: "New Request"},
Parent.Default
)
Meaning if its a new form then we make the value new request, otherwise use the parents default.
So now im trying to make a change to the EditForm1 Default mode property. DataCardValue52 is the datacard where the choice value is. Trying to make it so if the record is a new request then you can edit. Otherwise you can view the record.
If(DataCardValue52.Selected.Value = "New Request", FormMode.Edit, FormMode.View)
I am getting error - This rule creates a circular reference between properties error
Yes, you have provided a good example of a circular request. The control is dependent on the form mode, and the form mode is dependent on the control. Can you explain when you want the form in each mode? When do you want it in edit mode vs new mode?
As an aside, you can rename controls. This is very helpful in the future when you're reviewing the app, as you will likely not remember what datacardvalue52 is.
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional