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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Toggling dependent tog...
Power Apps
Unanswered

Toggling dependent toggles in PowerApps

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a SharePoint List based PowerApps Form which contains 2 toggles named "Started" and "Completed".

What I am looking for is when the toggle "Started" is checked, the "Completed" toggle should uncheck if checked. And if toggle "Completed" is checked, toggle "Started" should uncheck if checked. Appreciate your help.

 

Thanks.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,843 Most Valuable Professional on at
    Re: Toggling dependent toggles in PowerApps

    Hi @PowerSuiteUser ,

    You cannot directly refer them to each other or you will receive a Circular Reference error. You can do it with a Variable - OnChange of the Started toggle

    UpdateContext(
     {
     varToggle: {
     Started: Self.Value,
     Completed: !Self.Value
     }
     }
    )

    and the Default

    varToggle.Started

    OnChange of the Completed toggle

    UpdateContext(
     {
     varToggle: {
     Started: !Self.Value,
     Completed: Self.Value
     }
     }
    )

    and the Default

    varToggle.Completed

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • PowerSuiteUser Profile Picture
    on at
    Re: Toggling dependent toggles in PowerApps

    Thanks for your reply.

     

    This works but it doesnt show the value from the data source in EditMode of the form because the default value is not set to Parent.Default. Any suggestions to implement that?

     

  • Verified answer
    WarrenBelz Profile Picture
    152,843 Most Valuable Professional on at
    Re: Toggling dependent toggles in PowerApps

    @PowerSuiteUser ,

    This may not be perfect, but is the best you will do - set the Variable to a Text value OnChecked  - on Started Toggle

    UpdateContext({varToggle: "Started"})

    and on Completed Toggle

    UpdateContext({varToggle: "Completed"})

    Screen OnVisible

    UpdateContext({varToggle: Blank()})

    then Default on Started Toggle

    If(
     varToggle = "Completed",
     false,
     ThisItem.StartFieldName
    )

    Default on Completed Toggle

    If(
     varToggle = "Started",
     false,
     ThisItem.CompleteFieldName
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard