Having trouble with this one.
txtTest1.Text = glrItems.Selected.Test1 // FALSE
txtTest1.Text <> glrItems.Selected.Test1 // TRUE IsBlank(txtTest1.Text) // TRUE IsBlank(glrItems.Selected.Test1) // TRUE And(IsBlank(txtTest1.Text), IsBlank(glrItems.Selected.Test1 )) //TRUE
If Test1 is a text field in the gallery then
txtTest1.Text = glrItems.Selected.Test1.Text
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Gallery.Selected.xyz allows you to select any field in the record. The field does not need to be in the actual gallery. I'm successfully using Gallery.Selected.FieldName in ALL other comparisons in the code.
Its just this one causing the problem. And both sides are Blank() ! which is bizarre
Hi @ericonline ,
Do you set a Default "" value for the Test1 field in your data source?
Do you have set the Default property of the txtTest1 box to ""?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
If you set the Default property of theTextInput box to "", the above formula Gallery1.Selected.Gender=TextInput1.Text would return false. Please check the following GIF screenshot for more details:
Please check if you have set a Default value ("") for the Test1 field in your data source or the txtTest1 box.
Wow this one has been a wild goose chase!
Check out these findings:
If( frmForm.Mode = FormMode.Edit, glrGallery.Selected )
If( And( txtFormItem1.Text = glrGallery.Selected.Item1, ddFormItem2.Selected.Value = glrGallery.Selected.Item2, cmbFormItem3.Selected.DisplayName = glrGallery.Selected.Item3.DisplayName ), DisplayMode.Disabled, DisplayMode.Edit )
Does anyone have a better pattern for comparing an original record state to an altered state (using a Form?)
Check out the on demand sessions that are available now!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.
Features releasing from October 2020 through March 2021