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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / CONVERT TOGGLE "TRUE" ...
Power Apps
Answered

CONVERT TOGGLE "TRUE" "FALSE" TO "1" "0"

(0) ShareShare
ReportReport
Posted on by 211

Hello Community,

 

Toggle submits to SharePoint  "true" or "false".

Need to be converted to "1" or "0" for calculating in SharePoint.

Any assistance would be greatly appreciated.

 

V/R

chudson002

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @chudson002 ,

    I assume you are wanting to write the value to a numeric field in SharePoint? Put the toggle (I will call it Toggle1 below) in the card belonging to this field (you will have to unlock it) and only two changes needed. The Default of the toggle is

    Parent.Default=1

    The Update of the Data Card is 

    If(
     Toggle1.Value,
     1,
     0
    )

     

    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.

  • chudson002 Profile Picture
    211 on at

    Warren, toggle is in a gallery and patching to SharePoint.

    Any thoughts?

     

    V/R

    chudson002

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @chudson002 

    Toggles are either true or false.  You can use @WarrenBelz 's simple formula to convert the value of the toggle to 1/0, "Yes"/"No", as binary numbers or text to save in your SharePoint list.

  • chudson002 Profile Picture
    211 on at

    I got it...Thanks for the nudge.

     

    V/R

    chudson002

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard