I have a gallery with an text input box and I was trying to use the following power fx:
Clear(myCollection);
ForAll(
myGallery.AllItems As item,
Collect(myCollection, {value : textinput1.text})
)
The result of this is that all values returned to myCollection are the same value, that of the first item.
@SagarVIS96 Good catch. I knew it had something to do with the As item! thank you
Hi @KASCHN ,
You can use the following code:
Clear(myCollection);
ForAll(
myGallery.AllItems As item,
Collect(myCollection, {value : item.textinput1.text}
)
Thanks
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional