Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Choice field causing circular reference with Editform Mode

(0) ShareShare
ReportReport
Posted on by 909 Super User 2024 Season 1

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

  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at
    Re: Choice field causing circular reference with Editform Mode

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard