cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
warsongg00
Level: Powered On

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
Highlighted
Community Support Team
Community Support Team

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

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
Highlighted
Community Support Team
Community Support Team

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

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,859)