@F_rank I cannot see it is directly possible as you would like to go to details just after you scanned the barcode.
I have made an example that looks a bit what you want.
When we got compound ation where some actions are not fired until a form have been completed then I expect that you do something very similar to what you want.
Try to scan the following barcode - and see the result
https://storage.googleapis.com/glide-prod.appspot.com/uploads-v2/uRk7wjazZGYLrFHSjmHJ/pub/D6awYYyEHqNdoRtunNkp.jpg