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

Clearing text input after submitting data to collection

Hi,

I have created a form for booking out resources, i have a text input called BarCode_In where the person booking the resource will scan a barcode (not using the barcode scanner media input) and it gets validated from a SharePoint List.

 

Next to BarCode_In is a button called Select, when you click on select button it adds the information to a collection called Resources and shown in a gallery.

Collect(Resource,{Resource: BarCode_In.Text, Description: Res_Desc_In.Text, Type: Res_Result_Lbl.Text})

 

what i want to know is it possible to click the select button, send the data to the collection and then clear the BarCode_In ready to scan in another resource when they want to book out multiple resources?

 

I tried Reset() at the end of the Buttons OnSelect but it then just sends blank data to the collection, anyone got any ideas?

 

thanks

Michael

1 ACCEPTED SOLUTION

Accepted Solutions
Mpowis
Helper I
Helper I

this is how i finally managed to resolve it

Collect(Resource,{Resource: BarCode_In.Text, Description: Res_Desc_In.Text, Type: Res_Result_Lbl.Text}) ; Reset(BarCode_In)

View solution in original post

2 REPLIES 2
SkiDK
Solution Sage
Solution Sage

Hi @Mpowis 

 

Have you tried using ResetForm() instead of Reset()? 

 

Or have you created a custom form (not a build in control from PowerApps)?

Mpowis
Helper I
Helper I

this is how i finally managed to resolve it

Collect(Resource,{Resource: BarCode_In.Text, Description: Res_Desc_In.Text, Type: Res_Result_Lbl.Text}) ; Reset(BarCode_In)

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,375)