cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Multiple entries from the same field

I want the user to be able to add multiple entries from the same field and just submitted the form once. Is that possible?

 

For example:

 

Name:

Data:

Product ID: 

 

I may have multiple product IDs and I dont want the user to keep redoing the form over and over again.

 

3 REPLIES 3
Moreshwar
Resolver II
Resolver II

Hello,

 

You can add Product ID comma separated and OnSelect of button you can split the comma separated ids and store them in collection. Then Patch to backend datasource. Something like:

ClearCollect(
    TempCollection,
    ForAll(
        Split(ProductID.Text, ","),
        {
            ProductID: Result,
            Name: Name.Txt,
Date: Date.selected })); Patch(....)
Anonymous
Not applicable

@Moreshwar will this result in multiple entries or multiline entries because what I want is this:

 

Name       Product ID

Tom          B123

Tom          B234

Tom          B456

 

And not this:

 

Name       Product ID

Tom          B123

                 B234

                 B456

 

Without the user having to submit the form 3 different times.

Yes it will give you desired result. User will have to submit only once, where a you just need to make sure that user enters productid's "," separated. 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (4,259)