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

If select amount "x" option . "x" text boxes will show and "x" record will be saved.

Thank you this platform ,as the result I can build my beetle record tools from 0 to usable.
In order to increase efficiency , I wish to add one feature on it , but don't know can Power Apps can support or not.


If I selected the amount as 3 , the weight item will change to 3 text boxes.
After save , there will be 3 records in the database (excel) and weight are showing related text boxes content.

Thank you !

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: If select amount "x" option . "x" text boxes will show and "x" record will be saved.

Hello,

You can use Gallery control to achieve your requirement. Following are the steps,

  • Step1: add a number collection on screen "OnVisible" property, i.e. ClearCollect(colNumberList, [1,2,3,4,5,6,7,8,9,10])
  • Step2: add a blank gallery and then insert text box control in it
  • Step3: add a drop-down control 
  • Step4: write the formula "Filter(colNumberList, Value <= Value(Dropdown1.Selected.Value))" in gallery "Item" property 

On the selection of drop-down items the same number of text boxes will be generated within the gallery. Now you can read the gallery text boxes in a collection and process it.

To column layout of the gallery, please refer to the below post,

https://powerusers.microsoft.com/t5/Building-Power-Apps/Dynamic-card-layout-depending-on-the-screen-...

Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.

 

Thanks & Regards,

Devendra Singh

View solution in original post

1 REPLY 1
Highlighted
Resolver I
Resolver I

Re: If select amount "x" option . "x" text boxes will show and "x" record will be saved.

Hello,

You can use Gallery control to achieve your requirement. Following are the steps,

  • Step1: add a number collection on screen "OnVisible" property, i.e. ClearCollect(colNumberList, [1,2,3,4,5,6,7,8,9,10])
  • Step2: add a blank gallery and then insert text box control in it
  • Step3: add a drop-down control 
  • Step4: write the formula "Filter(colNumberList, Value <= Value(Dropdown1.Selected.Value))" in gallery "Item" property 

On the selection of drop-down items the same number of text boxes will be generated within the gallery. Now you can read the gallery text boxes in a collection and process it.

To column layout of the gallery, please refer to the below post,

https://powerusers.microsoft.com/t5/Building-Power-Apps/Dynamic-card-layout-depending-on-the-screen-...

Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.

 

Thanks & Regards,

Devendra Singh

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

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

Top Solution Authors
Top Kudoed Authors
Users online (9,592)