To get company name by default

i want the company field to be filled automatically.
it has to be done based on the current logged in user.

Set the Type as link field, provide “Company” Doctype in options and set the property to “Read Only”.

i did the same but now the company field is not visible in the form.