cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Jmcnutt
Level: Power Up

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
SKH19
Level 10

Re: Button that duplicates a field onselect in a form

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."

Microsoft v-siky-msft
Microsoft

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

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (6,129)