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 / Power Apps Gallery -> ...
Power Apps
Answered

Power Apps Gallery -> Form DataCard -> Toggle Help Request

(0) ShareShare
ReportReport
Posted on by 9

Hi! I am a bit new to Power Apps and I am trying to change how my powerapp is functioning.

 

TLDR:

Does anybody know how to get a gallery item to change a toggle in a datacard based on boolean data from an excel sheet?

 

Summary of issue:

I have a data set coming from an excel document, which has a boolean column. I have a gallery and a form, much like the default tablet setup which it auto generates. 

 

What I mean to do is have the gallery selection set a form toggle instead of a text label for the boolean information. This way I can toggle it on or off (true / false states) rather than use the text field and manually type True / False. 

 

I've been confusing copilot with various questions and decided to contact this forum instead.

 

I also wish to use the toggle value to update the form when submitted.

help-1.jpg
Categories:
I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    1,077 Moderator on at

    Hi @CeiBob,

     

    Here the AvailableText field (string) has values like [True/False] (text value). Based on true or false, I am showing the toggle control's value.

    SunilPashikanti_0-1702688596488.png

     

    The toggle control's default property will have the following formula:

    SunilPashikanti_1-1702688736587.png

     

    If the AvailableText field value is False, then it will be off, if it is True, the it will be on as shown in the above picture.

     

    Use the toggle control's values to update the data source, you may need to use if condition to pass the value as text "True" or "False" based on the selection.

    SunilPashikanti_2-1702689040901.png

    In the AvailableText DataCard - Update property add the below code.

    If(Toggle1.Value, "True", "False")

     

    Regards,

    @SunilPashikanti 

     

  • CeiBob Profile Picture
    9 on at

    Thank you for this reply. I will be trying this solution out sometime next week and will accept this as the solution then. 

     

    Edit: This solution worked! Thank you for explaining how this works!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 538 Most Valuable Professional

#2
11manish Profile Picture

11manish 307

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard