In this tutorial, you’ll learn how to use the Edit Form control in Power Apps to insert, view, and update records in a data source.
We’ll walk through each form mode—New, Edit, and View—using a sample Bookstore app connected to a Dataverse table.
Setting Up the Edit Form
- Create a Books table in Dataverse with columns such as Title, Publisher, Year
- In Power Apps, create a screen called NewBook
- Insert an Edit Form control into the screen.
- Connect it to the
Bookstable in Dataverse. - Remove unnecessary fields and adjust layout (vertical or horizontal).
- Add a Save button and set its
OnSelectproperty to:SubmitForm(Form1).
By default, the form is in FormMode.Edit, which expects an existing record. To insert a new record, change the form’s mode to FormMode.New.
Creating a New Record
- Set the form’s
DefaultModetoFormMode.New. - Play the app, fill in the fields and click Save.
- To reset the form after submission, add
ResetForm(Form1)afterSubmitForm(Form1).
Listing Records
- Add a new screen and name it ListBooks
- Insert a Gallery control and connect it to the
Bookstable. - Display only the
Titlefield and add a View icon - Set the View icon’s
OnSelectto:Set(varSelectedRecord, ThisItem); Navigate(ViewBook) - Add an Edit icon to each record
- Set Edit icon
OnSelectto:Set(varSelectedRecord, ThisItem); Navigate(EditBook)
Viewing Records
- Create a screen called ViewBooks
- Add a Edit Form to the screen and connect it to the Books Dataverse table
- Set the form’s
DefaultModetoFormMode.Viewand itsItemproperty tovarSelectedRecord.
This displays the selected record in read-only mode.
Editing Records
- Create a screen called EditBook
- Add a Edit Form to the screen and connect it to the Books Dataverse table
- Set the form’s
DefaultModetoFormMode.Editand itsItemproperty tovarSelectedRecord.
Now users can update existing records and save changes back to Dataverse.
Conclusion
Using Power Apps Edit Form control with different modes—New, Edit, and View—enables you to build robust CRUD interfaces with minimal effort.
Whether you’re adding new books, reviewing existing ones, or updating details, the form control streamlines the process beautifully.

Leave a Comment