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
Solved! Go to Solution.
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,
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,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
179 | |
67 | |
36 | |
33 |
User | Count |
---|---|
341 | |
271 | |
113 | |
74 | |
58 |