Last active
February 29, 2020 12:19
-
-
Save salesforceBen/84ab6d13085ec0250c2437f4f67c5b0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(component, event, helper) { | |
console.log('the doInit was called'); | |
var fullURL = window.location.href; | |
var recordTypeId = fullURL.substring(fullURL.indexOf("recordTypeId") + 13,fullURL.indexOf("recordTypeId") + 31); | |
console.log('the recordTypeId is: ' + recordTypeId); | |
if (recordTypeId != null) { | |
component.set("v.RecordTypeId", recordTypeId); | |
// console.log('the v.RecordTypeId is: ' + component.get("v.RecordTypeId")); | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment