web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Save and keep focus
Power Apps
Unanswered

Save and keep focus

(0) ShareShare
ReportReport
Posted on by 71

Hi all,

 

I have a long form with 3 buttons at the top:

  • Cancel
  • Save and Submit
  • Save

The OnSelect for the Save button is: SubmitForm(MyForm). It works fine, but after it saves, it takes the user to the top of the form, and they have to scroll down again to pick up where they left off.  Is there a way to save the form and keep the user on the field where they were?

 

Thanks

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @rutica ,

    The SetFocus function should assist here.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • rutica Profile Picture
    71 on at

    Thanks for writing @WarrenBelz  But my form has over 30 fields. How would I know where the user was when they clicked the Save button?

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @rutica ,

    That  is a challenge - you would need to set a Variable OnChange of each control (use a Text Variable with the control name), then a rather large Switch() statement going through all the possibilities. You will probably think again whether the complexity is work the outcome.

  • rutica Profile Picture
    71 on at

    Thanks again for writing @WarrenBelz .

     

    Yes, that seems like a lot of work just to stop the focus from moving to the top after saving. 🙂

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @rutica ,

    Yes it is - there is no "back" or "return" function as far a control focus goes. You coud just pick a control at the top, where the user will be "one click" away from the field they want

  • rutica Profile Picture
    71 on at

    @WarrenBelz :

     

    You wrote: "You could just pick a control at the top, where the user will be "one click" away from the field they want"

     

    True, but I don't know what field the user was on before they clicked Save. Maybe they were near the top, but maybe they had scrolled to the bottom.  Oh well.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard