web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Choice field causing c...
Power Apps
Unanswered

Choice field causing circular reference with Editform Mode

(0) ShareShare
ReportReport
Posted on by 920 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

Categories:
I have the same question (0)
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard