+ Start a Discussion
Natasha AliNatasha Ali 

Lightning Alternative to window.parent.location.href JS Button

I have a List Button that executes JS: 

It creates a new offer & prefills 2 fields. I was unsure how to convert this into a Lightning ready button as it works the exact same in classic and lightning.

Many Thanks,
Natasha :)



Pradeep SinghPradeep Singh
Hi Natasha,

You cannot use URL hacks for lightning.But, you can Use Quick Actions to pre populate the values. Refer https://developer.salesforce.com/blogs/developer-relations/2016/09/take-the-first-steps-ways-you-can-replace-javascript-buttons.html