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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard