If(IsBlank(Parent.Default) Or Parent.Default = "Open", false, true)
this formula is working
Thanks guys for your support
@Drrickryp @AsanKani @mrleetyler @BlessedCobba
Toggles can either be true or false regardless of what is shown in the TrueText and FalseText properties of the control. You can set the default as true or false. If the default property is empty it is interpreted by PowerApps as false. FYI, it is the same for the checkbox control. To make them work in a form you need to do a simple formula
If(Parent.Default, "Open","Resolved")
I want show the value
If its true then it will show Open or Resolved
let me know explain little more... what is your requirement?
To make them work in a form you need to do a simple formula depending on whether you are saving true/false in your datasource or "Open"/"Resolved".
If(Parent.Default, "Open","Resolved") resolves to if the Parent.Default is true, "Open","Resolved" if the datasource value is (true/false).
Alternatively, if you are saving "Open" and "Resolved" in your datasource, then it would be If(Parent.Default="Open",true,false)
As Drrickryp said, you can only set true and falue values on a toggle.
You just need to modify your default code to this
If(IsBlank(Parent.Default) or Parent.Default = "Open", false, true)
Then set the FalseText to "Open" and the TrueText to "Resolved"
in the database value its showing Resolved
But in the the application its showing open
I used the the above formula
reverse the coding..
if(parent.default = "Open","Open","Resolved")
Parent.Default with no definition will look for boolean true/false
User | Count |
---|---|
196 | |
125 | |
86 | |
49 | |
42 |
User | Count |
---|---|
284 | |
159 | |
138 | |
75 | |
72 |