How to auto fill fields based on look up field

How to auto fill fields based on look up field

Hi there,


I want to make it so, based on the vendor name, the vendor details will be updated. Using client script ideally as i want the user to be able to check the vendor details in the creation page