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 / Editable grid prepopul...
Power Apps
Unanswered

Editable grid prepopulate certain controls with values from first record

(0) ShareShare
ReportReport
Posted on by 820

Hi

I am making excel like editable grid in gallery and i want to be able to add new record(row in gallery) and it on creation should autofill some fields?

Is it possible to do that?

 

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

    @jja 

    Set default values in the controls and patch the row to your dataset. Patch(dataset,Defaults(dataset)). Sort the gallery to the ID, descending so the blank row is at the top.

  • julijazas Profile Picture
    820 on at

    @Drrickryp 

    Can you please explain little more on setting default values on contrlos?

    as an example i have in a gallery combobox control. In the Items i set it's Choices('Equipment type') and in defaultselecteditems i set to ThisItem.'Equipment type' so if users loads existing list all it gets populated with existing data because user might open let's say not finished project and continue adding new rows. Where do i need to set up this default data on controls? I personally do not know this default data it is user who will choose some data from comboboxes or enter manually in textinput and after that i want some certain fields(I know what fields) to be autopopulated when user will add new row

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @jja :

    You can set the default value for the specified field directly in the data source, and then the default value will be automatically filled when you add a new row:

    For example, I assume the data table is a SharePoint list:

    vbofengmsft_0-1647239703094.png

    After this configuration, when you add a new row, the ChoicesColumn field will be filled with 'Choice 1' by default.

    Best Regards,

    Bof

     

  • julijazas Profile Picture
    820 on at

    @v-bofeng-msft 

    no it is not the case. It is user who will set some default values upon first record entry. Then when entering second, third, etc record it has to copy and patch some fields from the first record

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