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
Mayur Gore 10Mayur Gore 10 

url hacking lightning

How to populate date fields in lightning using URL hacking
ANUTEJANUTEJ (Salesforce Developers) 
Hi Mayur,

I found the below code that I think has a similar use case of populating default values can you please have a look at it once:

>> http://theblogreaders.com/url-hacking-back-salesforce-lightning-experience-spring-20-release/

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
AnudeepAnudeep (Salesforce Developers) 
You can populate like this
 
lightning/o/Travel_Request__c/new?defaultFieldValues=Flight_Departure_Date__c={!Travel_Request__c.Flight_Departure_Date__c}

​​​​​​​
{tushar-sharma}{tushar-sharma}
This feature is now supported. Check below post:
https://newstechnologystuff.com/2020/01/20/default-field-values-using-lightning-web-components/

or you can refer formula
/lightning/o/Account/new?defaultFieldValues=
    Name={!URLENCODE(Account.Name)},
    OwnerId={!Account.OwnerId},
    AccountNumber={!Account.AccountNumber},
    NumberOfEmployees=35000,
    CustomCheckbox__c={!IF(Account.SomeCheckbox__c, true, false)}

This was part of Spring 20 release. (https://newstechnologystuff.com/2019/12/18/salesforce-spring-20-release-notes-quick-summary/)​​​​​​​

If this answer helps you, please mark it as accepted.

Regards,
Tushar Sharma
https://newstechnologystuff.com/