SHARE
TWEET

Untitled

a guest Jun 16th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <lightning:recordEditForm
  2.         onload="{!c.handleLoad}"
  3.         onsubmit="{!c.handleSubmit}"
  4.         onsuccess="{!c.handleSuccess}"
  5.         objectApiName="Account">
  6.  
  7.         <!-- the messages component is for error messages -->
  8.         <lightning:messages />
  9.  
  10.         <lightning:inputField aura:id="Name" fieldName="Name" />
  11.         <lightning:inputField aura:id="Rich_Text_Field__c" fieldName="Rich_Text_Field__c" />
  12.  
  13.     </lightning:recordEditForm>
  14.      
  15. handleiaSaveEvent : function(component, event, helper) {
  16.         var Name = component.find("Name").get("v.value");
  17.         //throw error at name field if name not equal to "Hello World"
  18.  
  19.     },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top