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
Pran_sfdcPran_sfdc 

Autopopulate a picklist value during record creation

I have to autopopulate a picklist value when i create a custom object record.
That picklist value should be autopopulated when i click create new.Can i do this using trigger?
AmitSahuAmitSahu
Yes you can.

Using trigger you can populate the values . but if u want when the user is creating a new record the field should be populated on the page layout, then you need to pass the values in the URL.  
Pran_sfdcPran_sfdc
Thank you.So this can be done only with URL Hacking ?
Actually i need to pass the parent record's lookup field value(accountid) to the picklist value on child record.How can i pass the value using URL?
Any help would be highly appreciated!