Announcements
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?
@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.
@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
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:
After this configuration, when you add a new row, the ChoicesColumn field will be filled with 'Choice 1' by default.
Best Regards,
Bof
@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.
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.
Haque 94
WarrenBelz 82 Most Valuable Professional
Kalathiya 38 Super User 2026 Season 1