I'm using a toggle and the switch does not render on screen. The value is correct but the control isn't there.
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.
Solved! Go to Solution.
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?
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.
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.
This suggests to me that something is wrong with the toggle control.
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?
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for the next call on June 15, 2022 at 8am PDT.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.