Hi Mabel,
Thanks for your reply. The code works if I manually type in text in textinput, but if I use barcode scan, it won't reset textinput, I set textinput.default=barcodescan.text, I guess that's because barcode scan has not been reset, and barcode scanner does not have reset property.
And under following situation also works:
1. Scan barcode, click add button, information saved to sharepoint, but textinput still has scanned value
2. Manual type in information in textinput, click add button, save to sharepoint list and reset textinput
Seems barcode scan won't get reset, but I could not find other way to get barcode scan information to textinput. Any idea.
Thanks again for your help
Tom