@ZhujingXia This is already implemented if you are using the new "Smart Forms" capabilities of Field Maps - there is a specific input type which enables barcode scanning. Are you using ArcGIS Enterprise by chance? It will be available in the next Enterprise update (10.9.1).