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 / Dynamically create tab...
Power Apps
Answered

Dynamically create table rows inside a form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello

 

Is there a way to dynamically create rows of table inside form, based on how many rows user want to add, and then collect data from them ? Generally I want to create something like table in attachment: 

User should be able to type his data in the first, blank row, and then by clicking +, the row should be added and sum up below. This table would connect to list from sharepoint only to get drop down list of role rates ( price per hour ). 

 

Thanks for all your help and hints

 

2019-08-09_13-04-51.png
Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    There is a way you can do this using galleries in PowerApps. I have created this blog post around dyamic elements for galleries and this should help you. 

    https://www.appliedis.com/how-to-use-galleries-in-powerapps/

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to display multiple records and make them editable in one screen?

    I suggest you try gallery control and customize it.

    Please note you could only update new records to collection, you could not modify an existing record of a collection.

    I've made a similar test for your reference:

    1)create a collection:

    ClearCollect(a,{id:1,field1:"",field2:"",sum:""})

    2)insert a blank gallery and customize it.

    Set the gallery's Items: a

    click the pen icon inside the gallery and then insert 3 labels, two textinput.8121.PNG

    Set textinput1's Default: ThisItem.field1

    Set textinput2's Default: ThisItem.field2

    Set label1's Text:"field1:"

    Set label2's Text:"field2:"

    Set label3's Text: "sum:"&Value(TextInput1.Text)+Value(TextInput2.Text)

    Set the arrow button's OnSelect: 

    Collect(a,{field1:TextInput1.Text,field2:TextInput2.Text});Reset(TextInput1);Reset(TextInput2)

     

    3)insert 4 labels below the gallery

    Set label4's Text:"field1sum:"

    Set label5's Text:Sum(a,field1)

    Set label6's Text:"field2sum:"

    Set label7's Text:Sum(a,field2)

     

    Then you could enter data in the gallery and click the arrow button your collection will update, the sum label will diaplay sum value.8122.PNG

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for all your replies.

     

    Do you know how to save each submited field values in seperatly sharepoint form?

    I mean, atm, when I type some data in the text fields, and submit form, it is becoming applied to all  my submitted forms on my sharepoint list. I want to make it unique for each submitted form. 

  • pratshar2908 Profile Picture
    2 on at

    Hi,

    Set textinput1's Default: ThisItem.field1

    Set textinput2's Default: ThisItem.field2

     

    here both ThisItem.field1 and 

    ThisItem.field2

    are not recognising,  it says Name isn't valid. 

     

    I have mentioned ClearCollect(a,{id:1,field1:"",field2:"",sum:""}) at start screen.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard