cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Adding new line of text input

Hi Guys,

Does anyone know how to do this? I have this scenario adding a new line of text boxes every time I select the add button.

Capture.PNG

4 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User II
Dual Super User II

Hey @Big_S 

 

Currently powerapps does not support such a control directly but you can achieve it with a workaround approach. Please follow the steps:
1) You can create the Agenda section as a gallery and input Label, Text Inputs and button control to make it look like your form.
2) The local collection that refers to this gallery, can be initiated on page visible using:
    ClearCollect(AgendaGalleryCollection,{Value:1},{Value:2})
    Here, I have only input two values as your form has only two, you can add values based on your requirements.
3) Now Gallery Specifications:
    Items: AgendaGalleryCollection
    Label to show SNo: ThisItem.Value
    Two Text Inputs each for Description and Time Allocation.
    Button: 
        Text: :"Add"
        Visible: If(ThisItem.Value = Last(AgendaGalleryCollection).Value,true,false)
        OnSelect: Collect(AgendaGalleryCollection,{Value:ThisItem.Value+1})
MicrosoftTeams-image (82).png

 

Note: The labels for Agenda, Description and Time Allocation are outside the gallery.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Dual Super User II
Dual Super User II

Hey @Big_S 

 

You have to write this Expression for ClearCollect on Screen property and not Gallery Visible, leave the Gallery Visible to true.
 
Place this expression on:
Click the Screen Name on Left menu items, go to OnVisible property and paste the clearcollect expression.
 

View solution in original post

Dual Super User II
Dual Super User II

@Big_S 

 

Can you confirm that data exists in your collection?
 
You can do that by navigating to View from Top Menu Item, and then select collections, then select your newly created collection, Please check if you have data inside it. I am guessing there is some issue with the collection creation.

View solution in original post

8 REPLIES 8
Dual Super User II
Dual Super User II

Hey @Big_S 

 

Currently powerapps does not support such a control directly but you can achieve it with a workaround approach. Please follow the steps:
1) You can create the Agenda section as a gallery and input Label, Text Inputs and button control to make it look like your form.
2) The local collection that refers to this gallery, can be initiated on page visible using:
    ClearCollect(AgendaGalleryCollection,{Value:1},{Value:2})
    Here, I have only input two values as your form has only two, you can add values based on your requirements.
3) Now Gallery Specifications:
    Items: AgendaGalleryCollection
    Label to show SNo: ThisItem.Value
    Two Text Inputs each for Description and Time Allocation.
    Button: 
        Text: :"Add"
        Visible: If(ThisItem.Value = Last(AgendaGalleryCollection).Value,true,false)
        OnSelect: Collect(AgendaGalleryCollection,{Value:ThisItem.Value+1})
MicrosoftTeams-image (82).png

 

Note: The labels for Agenda, Description and Time Allocation are outside the gallery.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Hi @yashag2255 ,

 

Thank you so muchhh! I will execute this and keep you update once again Thank youuuu! ❤️

Hi @yashag2255 

What am I missing?

gallery_1.png

 

button_2.png

Dual Super User II
Dual Super User II

Hey @Big_S 

 

You have to write this Expression for ClearCollect on Screen property and not Gallery Visible, leave the Gallery Visible to true.
 
Place this expression on:
Click the Screen Name on Left menu items, go to OnVisible property and paste the clearcollect expression.
 

View solution in original post

Hi @yashag2255 

 

I got no errors now but when I run the application I don't see any text inputs, label, and button from gallery what happen?

 

o.PNGoi.PNG

 

 

Dual Super User II
Dual Super User II

@Big_S 

 

Can you confirm that data exists in your collection?
 
You can do that by navigating to View from Top Menu Item, and then select collections, then select your newly created collection, Please check if you have data inside it. I am guessing there is some issue with the collection creation.

View solution in original post

Hi @yashag2255 

 

IT WORKS NOWWWWW!!!!! THANK YOU SO MUCHHHH!!!!! i'm always trying new scenario for me to learn THANK YOOOUUU!!!! 🙂

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (61,531)