Posts

Showing posts from December, 2019

Redirect To Custom Page after Record Creation in Lightning

Image
As we know that in Salesforce Lightning there is no direct way to override Save button and redirect to new custom page after creating record from Standard Record creation page. This blog may help you redirect to new Custom Lightning Page after creating record. Requirement:   I want to redirect to a custom page after creating any record. Redirection should not work if record is getting updated. Solution 1:   If Page Layouts do not have lot of fields then create new Lightning Component with Custom Save Button. But cannot use Lightning Data Service because LDS does allow to override Save Button. Solution 2: But what if Page Layouts have 100s of fields. Now it's not possible to create a Lightning Component and add all fields on that Lightning Component. For this situation we have a work-around. Below are the steps need to perform for this requirement: Create a custom Field. Let's call it  isCreated . Data Type - Checkbox By default value of this True. W

Followers