Posts

Showing posts from May, 2020

Lightning URL Hacks/ Predefault fields in lightning

Image
Remember those days when you showed off the non-code solutions to the clients and felt really awesome with their reactions... and you did this after the demo. .. And we proudly called them URL Hacks... even though its not much of a hack, 😉, it was just passing parameters. But it's all gone with Lightning. Boy, did they hate it when those URL buttons didn't work in lightning? I mean, it was so convenient for the users, defaulting certain fields is what they wanted, they have it on so many related lists. ... And then there were Quick Actions, Salesforce promoted them heavily for replacing custom buttons, javascript buttons etc... But it quite didnt hit the spot, I meant, they were fine. Still they are useful in some places. Then, just to give the users more productive tools, we ended up overriding the new button or creating a custom component etc... We have this force:createRecord actions in aura components, without having to create a lot of code, we can use the e