Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <lightning:recordEditForm
- onload="{!c.handleLoad}"
- onsubmit="{!c.handleSubmit}"
- onsuccess="{!c.handleSuccess}"
- objectApiName="Account">
- <!-- the messages component is for error messages -->
- <lightning:messages />
- <lightning:inputField aura:id="Name" fieldName="Name" />
- <lightning:inputField aura:id="Rich_Text_Field__c" fieldName="Rich_Text_Field__c" />
- </lightning:recordEditForm>
- handleiaSaveEvent : function(component, event, helper) {
- var Name = component.find("Name").get("v.value");
- //throw error at name field if name not equal to "Hello World"
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement