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 / Keep Toggle Control fo...
Power Apps
Unanswered

Keep Toggle Control format when Form in view mode

(0) ShareShare
ReportReport
Posted on by 120

Hi everybody;

In View Mode, Toggle Control will be displayed as "FalseText" or "TrueText".

Any way to keep the original format of the toggle control with the switch button (can not edit, of course)?

Categories:
I have the same question (0)
  • cds Profile Picture
    1,001 on at

    I think I can speak for everyone on this:

    Wat

     

     

    Switch Button?

  • carem Profile Picture
    120 on at

    No, I mean the toggle itself.

     

    Screen Shot 2019-11-07 at 12.18.57 PM.png

  • cds Profile Picture
    1,001 on at

    In View Mode, Toggle Control will be displayed as "FalseText" or "TrueText".

    Any way to keep the original format of the toggle control with the switch button (can not edit, of course)

    Your question doesn't make sense..

    Any way to keep original format? Yes, don't change it.
    With switch button...what are you switching?

  • Community Power Platform Member Profile Picture
    on at

    use Disabled not View

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @carem ,

    Do you want to keep the Toggle control as Edit mode within the Display form?

     

    If you want to keep the Toggle control as Edit mode within the Display form, I afraid that there is no way to achieve your needs in PowerApps currently.

    It is an known issue with the Toggle control within Display form -- The DisplayMode property of the controls within the Display form would be overrided by that from your Display form. Even though, you set the DisplayMode property of the Toggle control within the Display form to DisplayMode.Edit, it would still be displayed as Text.

     

    As an alternative solution, you could consider set the DisplayMode property of the Toggle control in your Display form to following:

    DisplayMode.Disabled

    then the Toggle control would be displayed as a disable mode as below:

    1.JPG

     

    In addition, you could also consider use Radio control to display your "Yes/No" field value instead of the Toggle control. I have made a test on my side, please take a try with the following workaround:

    1. Unlock the "Yes/No" field data card in your Display form.

    2. Remove the original Toggle control, instead, add a Radio control within it.

    3. Set the Items property of the Radio control to following:

    ["Yes", "No"]

    Set the Default property of the Radio control to following:

    If(
     ThisItem.'Yes/No Field' = true, "Yes", 
     ThisItem.'Yes/No Field' = false, "No"
    )

    2.JPG

     

    Best regards,

  • carem Profile Picture
    120 on at

    Thanks for your very detail instructions.

    It save me time.

  • Moayad Profile Picture
    3 on at

    Unfortunately there is no way for that as of now but as a simple workaround, you can overlay a label on top of the toggle control. The label must be transparent. When users click the toggle botton, they are actually clicking the empty label.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard