Hi @Anonymous ,
Could you please share a bit more about your issue?
Do you mean that the barcode scanned value (within Text Input box) from the Barcode control could not be reset (the Barcode Scanner control could not reset)?
Further, have you set the Default property of the Text Input box (e.g. barcodeLocation, barcodeSKU) to the BarcodeScanner1.Value formula?
Based on the issue that you mentioned, I have made a test, and the issue is confirmed on my side. The Reset() function could not reset the barcode scanned value (within Text Input box) from the Barcode control.
I think this issue is related to the Default property of the Text Input box. If you set the Default proeprty of the Text Input box (e.g. barcodeLocation, barcodeSKU) to the BarcodeScanner1.Value formula, it would display the scanned barcode value as Default value within the Text Input box.
The Reset function could only reset the Text Input box to default value rather than clear the value within the Text Input box. If the Barcode Scanner control is not reset, the Text Input box (e.g. barcodeLocation, barcodeSKU) would still display the scanned barcode value as the Default value within the Text Input box.
As an alternative solution, please consider reset the Barcode Scanner control after submitting rather than Reset the Text Input boxes. I have made a test on my side, please take a try with the following workaround:
Set the OnSelect property of the "Submit" button to following:
...;
Reset(BarcodeScanner1); /* <-- Add this formula to reset your Barcode Scanner control */
...
In addition, please also consider take a try with the following workaround:
Set the OnScan property of the Barcode Scanner control to following:
Set(IsReset, false)
Set the Default property of the Text Input box to following:
If(
IsReset,
Blank(),
BarcodeScanner1.Value
)
Set the OnSelect property of the "Submit" button to following:
...;
Set(IsReset, true); /* <-- Add this formula */
....
Set the OnVisible property of the current screen to following:
Set(IsReset, true);
Please take a try with above solution, check if the issue is solved.
Best regards,