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 / Changing a simple drop...
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:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    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

  • cheezy Profile Picture
    148 on at

    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)

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @cheezy ,

    You just need

    ThisItem.Email.Value= "Yes"
  • Suggested answer
    PakWarrior Profile Picture
    17 on at

    Toggle: Checked: ThisItem.Test2 = 'Test2 (TestTables)'.Yes

     

    Datacard: Update: If(DataCardValue2.Checked, 'Test2 (TestTables)'.Yes, 'Test2 (TestTables)'.No)

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at
    I am not sure why you are trolling though all of these very old threads, however the answers I have seen from you all relate to Dataverse structure, whereas most of the posts are in relation to SharePoint.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard