cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
warsongg00
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
v-xida-msft
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
v-xida-msft
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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,590)