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 / Toggling dependent tog...
Power Apps
Answered

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:
  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    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

    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
    156,774 Most Valuable Professional on at

    @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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard