Hello PA Community,
I have inherited a PowerApp that I am finishing up and have stumbled upon a gallery with labels in it where some of the labels turn into 'Typeable' boxes. See below:Gallery in question
Apologies for the excessive blurring of headers.
First of all; I cannot figure out where it is set up so one specific row has 'Typeable' boxes and the rest just shows a value?
Second, in my OnSelect property of the corresponding check boxes I have the following code:
UpdateIf(
colLocations,
loc_id = ThisItem.loc_id,
{
invertlevel: If(
chk_Bundkote.Text = "Manual",
Value(lbl_Bundkote.Text),
Value(ThisItem.invertlevel)
),
invertlevel_source: ThisItem.datasource
}
);
I am updating values in a collection using these checkboxes.
Now I need to add logic which enables me to write a number in the 'typeable' fields, and push that to my collection OnSelect of the check box. I have tried to add an If statement but it doesn't work as intended.
Any hints would be appreciated.
I discovered that a textbox had been placed on top of the label.
I adjusted my code to this and it now works:
UpdateIf(
colLocations,
loc_id = ThisItem.loc_id,
{
invertlevel: If(
ThisItem.datasource = "Manual",
Value(txt_Bundkote.Text),
Value(ThisItem.invertlevel)
),
invertlevel_source: ThisItem.datasource
}
);
Not the smartest oversight but at least I figured it out.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2