Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Changing a simple dropdown to a toggle

(0) ShareShare
ReportReport
Posted on by 148

trying to convert a simple drop down with two choices Yes and No to a toggle.

the  dropdown datacard is called Email_DataCard2 with the combo value DataCardValue6.

 

Update on datacard is  DataValue6.Selected and items for drop down is Choices([@Stage3B_Test].Email)

 

So i can add a toggle to the datacard, delete the combo and rename the toggle DataCardValue6.

Also i have renamed the truetext and false text to Yes and No.

 

...But what i cannot work out is the correct formulas/syntax  to add the Update on Datacard and items for toggle 

 

thanks

Categories:
  • WarrenBelz Profile Picture
    146,702 Most Valuable Professional on at
    Re: Changing a simple dropdown to a toggle

    Hi @cheezy ,

    You just need

    ThisItem.Email.Value= "Yes"
  • cheezy Profile Picture
    148 on at
    Re: Changing a simple dropdown to a toggle

    thanks Warren as usual.

    for anyone else interested i have also updated default property of toggle to display value of current record

     If(ThisItem.Email.Value= "Yes", true, false)

  • Verified answer
    WarrenBelz Profile Picture
    146,702 Most Valuable Professional on at
    Re: Changing a simple dropdown to a toggle

    HI @cheezy ,

    The Update of the Data Card - just add the two values you need posted depending on the On/Off of the Toggle

    {
     Value:
     If(
     DataCardValue6.Value
     "YourValue1",
     "YourValue2"
     )
    }

     

    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.

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard