Announcements
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.
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.
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.
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?
Just to clarify:
If you want to use only one form, you could use the following approach:
SubmitForm(Form1);ViewForm(Form1)​
This will save Form1, and then put it into View mode.
If you'd like to split entering and viewing the data to two forms, @Pstork1's approach should work perfectly.
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.
Here is my form item i can't put in form1.lastsubmit because there is already something in there Homegallery.selected
so when i select nieuw it wil do this
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.
You have different options:
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.
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.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 541
WarrenBelz 434 Most Valuable Professional
Valantis 289