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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,771)