Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
- <lightning:button label="Create an application"
- onclick="{!c.createRecord}" />
- </aura:component>
- ({
- createRecord: function(component, event, helper) {
- var createRecordEvent = $A.get("e.force:createRecord");
- createRecordEvent.setParams({
- "entityApiName": "Application__c" ,
- "defaultFieldValues": {
- 'Name' : 'System Number'
- }
- });
- createRecordEvent.fire();
- }
- })
Add Comment
Please, Sign In to add comment