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

How do you send data from barcode scanner button to list item and then reset the data after submit?

my form is in New mode, because it was showing blank items , then i set the item property for the form to

List-item property:  Defaults(listname)

datacard SerialNumber: bardcodescanner.value

and reset button: ResetForm(Form1)

when i click submit it reset all fields except for datacard which have barcodescanner values

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @warsongg00 ,

Could you please share a bit more about your scenario?

Do you want to reset the SerialNumber data card (bardcodescanner value) after your reset your Edit form?

Do you set the Default value of the SerialNumber data card in the Edit form to bardcodescanner.value?

 

Based on the issue that you mentioned, I think you have some misunderstanding on the ResetForm function. The ResetForm function is used to reset the Edit form data card values to default value rather than clear the data card values.

If you have set the Default value of the SerialNumber data card in the Edit form to bardcodescanner.value, even though, you reset your Edit form, the Barcode Scanner control is not reset, so the SerialNumber data card would still remain the scanned barcode value as default value.

 

As an fixed solution, please consider reset your Barcode Scanner control using Reset function. On your side, please set the OnSelect property of the "Reset" button to following:

ResetForm(Form1);
Reset(BarcodeScanner1) /* <-- Add this formula */

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @warsongg00 ,

Could you please share a bit more about your scenario?

Do you want to reset the SerialNumber data card (bardcodescanner value) after your reset your Edit form?

Do you set the Default value of the SerialNumber data card in the Edit form to bardcodescanner.value?

 

Based on the issue that you mentioned, I think you have some misunderstanding on the ResetForm function. The ResetForm function is used to reset the Edit form data card values to default value rather than clear the data card values.

If you have set the Default value of the SerialNumber data card in the Edit form to bardcodescanner.value, even though, you reset your Edit form, the Barcode Scanner control is not reset, so the SerialNumber data card would still remain the scanned barcode value as default value.

 

As an fixed solution, please consider reset your Barcode Scanner control using Reset function. On your side, please set the OnSelect property of the "Reset" button to following:

ResetForm(Form1);
Reset(BarcodeScanner1) /* <-- Add this formula */

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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