Hello,
A user request was to save when a datacardvalue has changed. So i use the patch function in the onchange property of the datacardvalue.
Is it possible that after a Patch the screen stays at his position and does NOT jump to the top. so the user can fill all the fields but on the background it is saved by changing.
Submit form closes the form. so that doesn't do the trick.
Please show the formula you used in the onchange of the datacardvalue. Also a screen shot of your form as the problem occurred could help
Patch('Incident andere SO';TemplateGalleryList1.Selected;{ Aankomstplaats: DataCardValue27.Text})
After the patch is done, the screens jumps to the top. So if a user is busy to fill in one the last fields of the form he has to scroll down again.
Exact same issue here.
When onchange is set to submitform for each field in a powerapps form it scrolls the user to the top of the form! How to fix?
I used a workaround with Set( MyVar, x) to
divide my form by visibility
On select property tab 1: Set ( MyVar, 1 )
On select property tab 2 : Set( MyVar, 2)
.....
visibility property of datacard : if ( Myvar = “x” , true , false)
so you can set the first datacards visibility to fit in the first “screen.”
the next datacards have visibility set on 2 ,
....
I created three buttons to divide my fields so they don't jump anymore. (button 06-14 / 14-22 / 22-06 )
Set the onselect property of the button to the desired variabel. ( in my case , value = "06" for my first button , "14" for my second button,...)
you can choose the variabel name and his value. use the expression set( Variabel ; X )
Set the datacardvisibility to the desired variabel so only this cards are shown when the variabel is this value
For best practices, set the onvisibility property of the screen to the first variabel value.
Hi @Stijn007 ,
I really appreciate your workaround. However let me take a min to explain how the forms work in PowerApps, in screen onSubmit of the form with the button click the form will be repainted/reloaded by the Power App engine. So, It will also set the tab index to top of the page.
Having said that your approach is the right approach it is not a workaround.
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.
Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
199 | |
99 | |
59 | |
58 | |
55 |
User | Count |
---|---|
257 | |
161 | |
88 | |
79 | |
68 |