0

I have created a new Lightning button on Lead list view - page. When i click on this button, two fields values should per set, one being pick field and another is Checkbox. Below is what i tried and it did not work

/lightning/o/Lead/new?defaultFieldValues=
Lead_Type__c = (!URLENCODE(‘Qualified’))
Accepted_Checkbox__c = 'True'
3

You need to use proper merge field syntax and commas after each field

You have:

Lead_Type__c = (!URLENCODE('Qualified')),
Accepted_Checbox__c = 'true'

You need:

Lead_Type__c = {!URLENCODE('Qualified')},
Accepted_Checbox__c = true

from the Help

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.