cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jmcnutt
Frequent Visitor

How to create a button that duplicates a field onselect in a form

How can I create a button that OnSelect takes an existing blank field and inserts a new blank one below it? Need this for a form where the maximum number of entries will vary so the user needs to be able to insert as many as needed. The fields that will be duplicated would be a: A drop down list of titles, Name, Contact number, company, additional info single line text.

Thanks!
2 REPLIES 2
SeanHenderson
Power Participant
Power Participant

Sounds like you need an editable table.

The process for making one is a bit involved, so I would suggest checking out the walkthrough here:

https://powerapps.microsoft.com/en-us/blog/editable-tables/

Get started with this, and if you run into any snags, let me know and I would be happy to help.

 

---
Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

v-siky-msft
Community Support
Community Support

Hi @Jmcnutt ,

 

I don't think this is available in Form. The field of form is fixed, can not be changed at will.

All I can think of is to add all a lot of duplicate CARDS up front, and set the duplicate cards to be invisible. Once clicking the button, set the a duplicate card of selected card to be visible. Please see the following test.

1. Set OnStart property :

Set(Var_Title, false);Set(Var_Hours,false)

2. Set visible property of the duplicate Title cards to Var_Title, set the duplicate Hours cards to Var_Hours

3. Set OnSelect property of plus button in Title field:

Set(Var_123,true)

4. Set OnSelect property of plus button in Hours field:

Set(Var_Num,true)

StoG_13.gif

Best regards,

Sik

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,164)