Hi,
I am working on an editable repeating gallery, I have my details from Sharepoint but I have empty fields which would be filled up by the user if they need to, I am using a toggle control to determine if the field does not match but the toggle is turning on if the field and the sharepoint column is both empty which should not be. Also, if I add another condition on the toggle it would only turn on if the last condition in the code is fulfilled.
Here's the OnChange code for my text control
Patch(colUpdateData, ThisItem, {'INC Number': txtAssetINC.Text, Model:txtAssetModel.Text});
Here's the code for my toggle
If(ThisItem.'INC Number' <> txtAssetINC.Text || ThisItem.Model <> txtAssetModel.Text, true)
Here's the code for saving the changes on Sharepoint
ForAll(Filter(galExitClearance.AllItems, Toggle1.Value = true), Patch('Exit Clearance List', ThisRecord, {'INC Number': txtAssetINC.Text, Model:txtAssetModel.Text}))
Hi, I would use this much slicker patter Reza showcases for this instead: https://youtu.be/76RJyaoW0BQ?si=5rWUp0ks-tcQvfT6
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional