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 / How to reset screen va...
Power Apps
Unanswered

How to reset screen values when navigating

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, I have two screens, home and a form I am submiting. when I submit and go back to home and then go back to the form to make a new item, the values from the previous process are there. 

How can I reset the second screen values?

Any help or suggestions would be grate thanks

Categories:
I have the same question (0)
  • prajyot Profile Picture
    132 on at

    Hello,
    You can set the Reset property value of the textbox control to resettextbox.
    On select of submit button after doing your patch or update functionlity reset the textbox values by using updatecontext.

    UpdateContext({resettextbox:true}); UpdateContext({resettextbox:false}).

    This will clear up the values of textbox control on second form.


    Thanks & Regards,
    Prajyot M

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    When you click on the button to make a new item - you would probably be setting the following

     

    NewForm(formname);Navigate(screen)

     

    Just add ResetForm option to this (it will reset entire form for you)

    ResetForm(formname);NewForm(formname);Navigate(screen)

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply. Is not a form exactly. I have comboboxes, dropdown, labels and date pickers. How can I set all that to empty values, wich is what happens when I first enter the screen

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    OnVisible of that screen or on clikc of the button which navigates to that screen use

     

    Reset(controlname);

     

    You would have to reset each one of your controls manually

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • prajyot Profile Picture
    132 on at

    The approach which I had explained earlier for specifc controls only.

     

    It will work for combobox, dropdownlist, label, textbox , datetime control as well.

    For every control you need to set Reset property to -resetControl and onSelect of button you have to
    make it UpdateContext({resetControl:true}) , UpdateContext({resetControl:false}).

    Hope this helps.


    Thanks & Regards,
    Prajyot M

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It works for everything but labels

  • RezaDorrani Profile Picture
    12,145 on at
    How are you setting text property for labels?
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The label is being set when gallery item is selected

  • RezaDorrani Profile Picture
    12,145 on at
    Why would a user select a gallery item when they are creating a new item?

    So every time they navigate to the new form screen do they select a gallery item?

    Share screenshot for clarity
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am working on an approval request, so the person selects who approves

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 408

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 319

Last 30 days Overall leaderboard