cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Impactful Individual
Impactful Individual

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

Highlighted
Community Support
Community Support

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,479)