cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
junyuan
Frequent Visitor

Toggle Default value in a form.

Hi experts, 

 

I have a used a toggle input control in a NewForm. When setting up an EditForm for this same particular datasource, i would also place a toggle input in place to also show what value was selected before (true / false). 

 

In the EditForm, the datacard.default value is set to ThisItem.Received and the toggle.default control within it is set to Parent.Default.

 

However, the toggle.default control will throw off an error:

Warning: Expecting a true or false value. The current value may cause unexpected behavior.

Using ThisItem.Received on the toggle.default control itself will also throw the same error. 

 

The datacard actually does indeed show the correct intended value, however would like to know if this would throw off any potential problems in future. 

 

2 REPLIES 2
RandyHayes
Super User
Super User

@junyuan 

What type of column is Received in your datasource?  And, what is your datasource?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
junyuan
Frequent Visitor

Hi Randy, 

 

The datasource is a SQL table. The column format should either be Boolean or String. 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (3,954)