cancel
Showing results for 
Search instead for 
Did you mean: 

ComboBox - Issue - OnChange trickered at Form Load

When a form loads I set DefaultSelectedItems to some CombiBoxes. The Issue is that this trickers the OnSelect attributie off the control which runs some actions I want to run when the user changes the selected item.

This is strange behaviour and the OnChange should not be trickered on form load but only when there is users interaction.

Maybe make it that the OnChange is only trickers when the OnSelect is trickers also.

I will look for a workaround and post this here when I found one.
Status: Under Review

Adding @GregLi@FilipK to speak on the roadmap for this request.

 

Thank you,

Audrie

Comments
Resident Rockstar

@Audrie-MSFT,

 

Could you maybe look at this one? Thanks.

Power Automate
Status changed to: Under Review

Adding @GregLi@FilipK to speak on the roadmap for this request.

 

Thank you,

Audrie

Advocate II

Hi,

I'm still experiencing this behaviour - is there a workaround I can use?

Thanks

Helper III

2020 and still seeing this problem, can we have any updates on this please?

Regular Visitor

What's the status of this? This is still a huge issue..

New Member

I found a workaround, but this really needs to be fixed.

Workaround using UpdateContext
1. Apply context variable in the OnSelect of the combo box

UpdateContext({EditField: true})

2. Wrap combo box OnChange formula around IF using the variable created above.

If(
   EditField,
   <OnChange formula here>
)

3. Update context variable in the form's OnReset

UpdateContext({EditField: false})

 

This worked for me to suppress the OnChange action to take place after I actually click the field and edit. This behavior is not needed on a dropdown or any other edit field, but simply a bug in the action order of the Combo Box. Please fix this.