function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anil 007anil 007 

auto populate the lookup fields using visualforce


how to auto populate the look up field with admin login name in vf page .


You can get admin user information through SOQL Query :


  User u=[select name,contactid from User where.getusername()];


and you can autopopulate the admin user name by creating the property on visual force page and assign the property in controller.