You need to sign in to do that
Don't have an account?
Tulasiram Chippala
How to populate field values in lightning for contact creation
if(contact_number != 'UnKnown'){ window.open('/003/e?name_firstcon2='+firstname+'&name_lastcon2='+lastname+'&con10='+contact_number, '_parent'); } else { window.open('/003/e', '_parent'); }It is populating field values in classic. But in lightning it is not populating values, Only contact creation page is poping up.
Try to add Lightning Events - Force:createRecord into your application . May reslove your problem.
check out below url
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_createRecord.htm
let us know if it helps you and mark it best if it helps you
Thanks,
Bhanu Prakash
visit ForceLearn (https://www.forcelearn.com)for salesforce Latest Updates and development tips
Issue is Lightning does not support Javascript button to you need to use, you need to wrote custom logic for lightning. Check out below trailhead
https://trailhead.salesforce.com/en/modules/lex_javascript_button_migration
https://partners.salesforce.com/partnerNews?id=a033A00000F2uEEQAZ
let us know if it helps you and mark it best if it helps you
Thanks,
Bhanu Prakash
visit ForceLearn (https://www.forcelearn.com) for salesforce Latest Updates and development tips