Posts

Showing posts with the label OnChange

PowerApps - Work around for "OnChange event is triggered automatically when navigate to different records in Gallery"

Image
Issue faced in Form - Edit mode:     My screen: I've Edit Form in "My screen", there are 3 controls. When changing the 1st control's (combo box) value, the OnChange event will be triggered where I've written the code to clear the other 2 control's value. Note : Other controls data should be cleared only when 1st control's value is changed manually by the user.     Code written in OnChange property of 1st control:      Code written in Default property of other 2 controls:     Code written in OnVisible property of "My screen":     Scenario:  From gallery screen, I've opened the record (let say R2), the OnChange event in 1st control is not triggered, so other controls data is not cleared as expected.  When trying to open the different record (lets say R4) for the second time, the OnChange event in 1st control is triggered and so other controls data is cleared. But in this scenario, the OnChange event code must not be executed...