0

Created custom button to pre-populate few fields which overrides standard clone button using url hack, this is working in classic mode but not in lightning mode, sf1.

Please let me if we have any solution. thanks

1
  • 2
    As the term implies, this "hack" isn't officially supported so it isn't surprising that it stopped working.
    – Phil W
    Nov 21 '19 at 11:50
4

You can use Lightning Quick action of type create record with predefined values to replace your url hack in Lightning and mobile app. Any url hack is simply not going to work in Lightning and salesforce mobile app.

Read this blog for an working example:- REPLACING URL HACKS WITH PRE-DEFINED ACTIONS IN LIGHTNING EXPERIENCE

Some other Resource available on it:-

  1. Salesforce Mobile App Customization
  2. Set Predefined Field Values for Quick Action Fields
  3. Notes on Predefined Field Values for Quick Actions

Update:-

Salesforce Does not allow to use Action on Related list but it does the button. You can create a Visualforce page and use that visualforce page inside your button. Redirect user onload the page to the new record page with pre-populated values.

Also, You can explore this open source repository:- Quick-Actions-Everywhere which allows to add actions any where in salesforce.

1
  • i need to use this in related list. From related list if click new button i need to prefill some values. Nov 21 '19 at 11:43

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.