Fill web form with information from another doctype

Hello
I want to fill a web form with information from another doctype. Here is my script. I want to get the rfid from the doctype ‘Allocation Of Badge’. However it doesn’t work, and I really don’t understand why.
Thank you for your help.

1 Like