0

I have a "Create Record" button on a Lightning list view. It creates the record in the custom object when the user hits Save and then puts the user on a view of the newly created record. Instead of this, I would like the user returned to the List View where the button was called. We have Salesforce Professional.

2
  • what kind of button it is? Can you add more details about the button you have? Commented Nov 11, 2020 at 9:01
  • The button was created by going to my custom object in Lightning and selecting Buttons/Links/Actions. I then chose New Button/Link. I selected List button and gave the button a link, label, description. I selected URL as the button Content Source and "Display in existing window with sidebar." I then added the button to the Classic Search default list view. The URL that I used is the one that comes up when I click New on the custom object's List View. Commented Nov 11, 2020 at 9:58

1 Answer 1

1

As per comment, You need the Return URL parameter in button URL. A sample example is below:-

/a06/e?retURL=/001/o

If you are working with Lightning URL Hack, below formula will work. It has backgroundContext that works same as Return URL parameter.

{!URLFOR('/lightning/o/Account/new?count=1&nooverride=1&useRecordTypeCheck=1&navigationLocation=LIST_VIEW&uid=160510799526966038&backgroundContext=/lightning/o/Account/list?filterName=Recent')}
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .