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 / Adding text fields wit...
Power Apps
Unanswered

Adding text fields with the button control "Add"

(0) ShareShare
ReportReport
Posted on by 27

Hi, since I´m new to Power Apps i don´t quite know how to approach this matter. With the help of the Button (i don´t know what else to call it) I want to add three new text fields to my form. Is that even possible and if so how do I code it?

Help.PNG

So basically when someone clicks on the button "add" it generates the three text fields above it again. 

Can someone help me with that?

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @extrastrawberry -

     

    It sounds like you're trying to create a repeating section.

     

    Because the data source in your app is bound to a specific schema, it is not possible to create new columns directly into your data source. However, it is possible to hide/unhide fields which already exist as columns in your data source.

     

    Typically, this is achieved using a Gallery control and the Patch function. However, because you're using an Edit Form control, you might find this blog of mine useful:

     

    https://powerusers.microsoft.com/t5/Power-Apps-Community-Blog/Repeating-section-for-a-Form-control/ba-p/2465629 

  • extrastrawberry Profile Picture
    27 on at

    If I do it like you suggested, is the information in the "new" or "unhidden" text field going to show up as a new table row? Because that is what I´m trying to achieve. So that when every other information in the form is the same except in these three text fields (shown in the picture) you can just fill out the "new" text field instead of filling out the entire form again. 

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @extrastrawberry - sorry I do not understand your question. The hidden fields will simply become visible when you select your button. Depending on how you design the user interface, the user will "think" that new rows have been added, whereas what is really happening is that you have simply made hidden fields visible.

  • extrastrawberry Profile Picture
    27 on at

    Sorry, I will try to explain it again. It´s a bit complicated. The form I made and the informationen you put in are saved in a SharePoint List. Basically it´s a Quality deviation report that the workers have to fill out in case there´s a wrong component or something was delivered wrong (for example). Mostly in wrong deliveries there are multiple components that are wrong and they would have to fill out a new form for every component. To avoid that and because the information put into the other text fields will be identical  (except the three text fields shown in the photo) they should be able to only fill out one  form but have additional text fields (for the three text fields) in case something occurs like I described. And when they fill out the "newly" generated text fields the app should recognise that since it´s an additional information it has to generate a new table row in which every information is the same and only the information from the three text fields changes. 

    I hope that made it more clear. But maybe it´s too complicated to explain over text 🙂

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @extrastrawberry -

     

    As I understand it, you have an Edit Form control which submits data to what is presumably a SharePoint list. The Item property of the Form is presumably populated via Gallery selection.

     

    Once the Edit Form is populated with the selected record, you want to give users the option to resubmit the same details, together with three additional fields, as a new record in your data source.

  • extrastrawberry Profile Picture
    27 on at

    Yes exactly, that´s it. 

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @extrastrawberry - I was middle of writing a response but I have decided it is better suited to a blog post: 

     

    https://powerusers.microsoft.com/t5/Power-Apps-Community-Blog/How-to-copy-a-record-in-a-Form-as-a-new-record-without-using/ba-p/2652476 

     

    See if you can re-use these steps for your scenario.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard