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 / Toggle Switch is not r...
Power Apps
Answered

Toggle Switch is not rendering on screen

(0) ShareShare
ReportReport
Posted on by 534

I'm using a toggle and the switch does not render on screen.  The value is correct but the control isn't there.

 

Toggle Advanced Properties.jpg

 

tonykiefer_2-1636470270163.png

 The display mode is EDIT.

 

Is there a bug with this control or was there an update responsible for this?  I tried replacing this control and data card and I keep getting the same result.  The control works but the switch is not rendering.  

Categories:
I have the same question (0)
  • PTBBSolutions Profile Picture
    691 on at

    Hi @tonykiefer ,

     

    I don't think there are any problems with the toggle control in general. Could you please advise what is 'currentRecord.ProdDevComplete' and how you are setting it?

  • tonykiefer Profile Picture
    534 on at

    The currentRecord is set on the previous screen and it is used to return every single data point on this screen, all of which are working correctly except the toggle.  The toggle is also returning the correct value but the switch is not rendering.

     

    tonykiefer_0-1636472608503.png

     

  • tonykiefer Profile Picture
    534 on at

    Even if I change the value in the data base...the toggle returns the currentRecord, the currentRecord returns the correct value, the toggle displays the correct value...but the toggle switch is not rendering.

    tonykiefer_0-1636473606381.png

     

    This suggests to me that something is wrong with the toggle control.

  • PTBBSolutions Profile Picture
    691 on at

    @tonykiefer ,

     

    By your first screenshot, I see that you ProdDevComplete = "Yes" and for the toggle's default property you are using "If ProdDevComplete = 'Y'" Can this be the issue?

  • tonykiefer Profile Picture
    534 on at

    The values in the db are stored as "Y" or "N".  I set the default property as such...If((currentRecord.ProdDevComplete) = "Y",true,false)...since the control works with true or false this is making the substitution.  Several articles use the same method.  Also, before setting the value...at the point of inserting the control on the data card...the switch doesn't render.  

     

    The switch should render whether it is set or not.  Just to reiterate...The switch didn't render before setting the default property either.

     

    I could totally be doing something wrong and that's why I included all settings as screen shots and performed my db test to make sure the correct values are coming back...which they are.

  • Verified answer
    tonykiefer Profile Picture
    534 on at

    @PTBBSolutions 

     

    I figured it out.  The display field for the data card was set to "View".  When I changed it to "Edit" the toggle switch rendered.

     

    Thank you for helping me troubleshoot!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard