cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,032)