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 / Submit Form new form
Power Apps
Answered

Submit Form new form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Forum users

 

I want to show my new record that i have made in my datasource in the app it now goes to a record i think the first one in my datasource how can i changes this. I think it will be on the onsucces screen i have now there  "SubmitForm(Form1)"

How do i do that.

 

Categories:
I have the same question (0)
  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @Anonymous,

     

    If you want your form to display the entry you last submitted, you can set its "Item" property to Form1.LastSubmit.

    This should display the last record you submitted - unless your form is set to FormMode.New mode, so you might have to make sure that your form changes to FormMode.View oder .Edit after you have submitted your entry.

  • Pstork1 Profile Picture
    69,254 Most Valuable Professional on at

    In the Form1 OnSuccess have it navigate to a new screen with a Display form on it set for the data source.  Set the item property of that form to Form1.LastSubmit.  That will get the record most recently submitted by Form1 and display it in the Form.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am doing something wrong and don't know what it is when i submit it will be submitform form1

    I think that is oke but onsucces it hat to go to viewform form1_1 in my case

    but when i do that it doesen't show me the viewform?

     

    Harley525_0-1624284046195.png

    Harley525_3-1624284437294.png

     

    Harley525_2-1624284153366.png

     

     

     

  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @Anonymous, 

     

    Just to clarify:

    • Is your Form1 used to input data about your client?
    • Would you like to display information about the last new client in Form1_1, or Form1?

    If you want to use only one form, you could use the following approach:

    1. Set the formula of your save button to:

     

    SubmitForm(Form1);ViewForm(Form1)​

    This will save Form1, and then put it into View mode.

     

    • You could then set the Item property of Form1 to Self.LastSubmit:
      joe_hannes_col_0-1624285952664.png

       

    If you'd like to split entering and viewing the data to two forms, @Pstork1's approach should work perfectly.

  • Pstork1 Profile Picture
    69,254 Most Valuable Professional on at

    What screen is Form1_1 on?  I don't see it on Screen2.  If its on Screen3, or some other screen, then you need to add a navigate() to the OnSuccess value of Form1.  That will take you to the screen where the viewform is, otherwise you won't be able to see it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is my form item i can't put in form1.lastsubmit because there is already something in there Homegallery.selected

     

    Harley525_0-1624286429082.png

    so when i select nieuw it wil do this 

    Harley525_1-1624286556663.png

    The user wil fill in the form and then have see what he or she has put in this form.

    That is what i want to achieve.

     

    I hope this is a little bit clear for you guys i am a newbie and watch al lot of video's but somethimes it is a little bit hard to understand some of this issues but i will learn thanks in advance.

     

     

  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @Anonymous,

     

    You have different options:

    • You could use @Pstork1's approach, where you have one form dedicated to viewing the new records.
    • Or, you could use global variables to dynamically set the record to be displayed in your (only) form. To do this,
      • In the Homegallery, set the icon used to select a record to Set(varCustomerRecord,ThisItem)
      • Set the formula of your save icon to: SubmitForm(Form1);ViewForm(Form1);Set(varCustomerRecord,Form1.LastSubmit)
      • Set the Item property of your Form1 to varCustomerRecord
  • Verified answer
    Pstork1 Profile Picture
    69,254 Most Valuable Professional on at

    That's why I recommend a separate form on a separate screen to view the last item rather than re-use the existing form for New, Edit and View.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry Guys but in won't work in my app i select New (nieuw) and then fil in the form in this case form1

    then i click on save (opslaan) in this i have Submit(Form1) and in form1 i have in the onscuccesscreen:

    ViewForm(Form1_1) but viewform(form1_1) is standing on screen3 maybe this is the problem but i do not know what the formula for this is.

  • amonwu Profile Picture
    3 on at

    It works. Many thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard