Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  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. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement