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 / Circular reference issue
Power Apps
Unanswered

Circular reference issue

(0) ShareShare
ReportReport
Posted on by 44

Hi everybody

 

I'm building an easy data form app but I'm having an issue with a circular reference.

For the purpose of the exercise let´s say that I have 2 questions: Q1 and Q2.

The visible property of the Q2 it is based on the answer of the Q1(is a dropdown), if the user selects "yes" is true otherwise it is false (if(Q1.datacardvalue.selected.value="Yes",true,false). Now for the Q2 I also had in the form a checkbox that will not be visible for the user with the default property like this=if(Q2datacardvalue.selected.value="No",true,false) however the system shows me that this is not possible because this creates a circular reference with the visible property of the Q2. 

 

Any ideas on a workaround for this?

Thanks in advance for any help you can provide.

Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    I have two dropdowns, each with items

    ["Yes","No"]

    dropdown 2 has a visibility of 

    Dropdown1.Selected.Value="Yes"

    and a checkbox that has a default of

    Switch(Dropdown2.SelectedText.Value,
     "No",true,
     Blank(), false,
     false)
     

    Selecting Yes on dropdown 1 makes 2 appear, selecting no makes it disappear.

    Selecting yes on dropdown 2, or not selecting anything at all on it (because it has not been shown) makes our chekcbox unchecked by default.Selecting No on it makes our checkbox checked.

     

    I also threw this in the onchange of dropdown 1 to reset/clear dropdown 2 if you had already selected an answer on dropdown 2 and change dropdown 1 to no

    If(Self.SelectedText.Value="No", Reset(Dropdown2))
  • dev85 Profile Picture
    44 on at

    Thank you!!

    Actually, I didn't use this method for my problem, I figured out by using some variables that triggers with the onchange of each dropdown. However, I just use your method for another issue that was kinda the same and it worked perfectly!

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard