cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

ComboBox not updating position correctly when Form updates

My main goal is to enable typed search with a Form's DataCard component so I've created a ComboBox and referenced it in the respective DataCard (Área_DataCard3) Update function. This works fine, but whenever the form updates its DataCards with error messages, the ComboBox component does not update its position. It uses the position from before the form is updated.

 

Y

RectQuickActionBar3.Height +

Área_DataCard3.Y +
DataCardKey9.Y +

DataCardKey9.Height + 5

 

Is this a bug? Is there anyway I can recalculate the ComboBox Y value after the form is updated?

 

Thanks!

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: ComboBox not updating position correctly when Form updates

Hi @Anonymous ,

The reason why you met this problem is that the value inside the form like RectQuickActionBar3.Height,Área_DataCard3.Y will all become invalid after the form is submitted.

 

So I suggest you set these values that you need as variables befor the form is submitted and then you could use.

For example:

Set the submit button's OnSelect:

Set(var1,RectQuickActionBar3.Height);
Set(var2,Área_DataCard3.Y);
Set(var3,DataCardKey9.Y);
Set(var4,DataCardKey9.Height); SubmitForm(Form1)

Set the Form's OnSuccess:  Set(var5,"a")

Set the combo box's Y:

If(IsBlank(var5),original Y,var1+var2+var3+var4+5)   //if the form is submitted, the combo box's position will change

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: ComboBox not updating position correctly when Form updates

Thank you, Phoebe Liu!

 

However, that did not fix my issue. My problem happens when the form fails and the error messages make the DataCards move on screen. When I submit a failed form again, the position correctly update to its position. Maybe it has to do with the order that the components position are updated but shouldn't changes to Área_DataCard3 flag the ComboBox Y as "dirty"?

Helpful resources

Announcements
thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,311)