You need to sign in to do that
Don't have an account?
monalisa das 46
I have a requirement where I have a validate button for Lightning:recordEditForm on click of which it needs to update certain fields. So my code is something like this
I have a requirement where I have a validate button for Lightning:recordEditForm on click of which it needs to update certain fields. So my code is something like this
This works fine as long user is not entering anything in the field,but when user updates the field and clicks on validate, the button doesn't works
any suggestions?
<lightning:recordEditForm aura:id="recordEditForm" recordId="{!v.myObject.Id}" onsuccess="{!c.handleSuccess}" objectApiName="Address__c"> <lightning:inputField fieldName="Address_Line_1_Native__c" aura:id="addrNative" onchange="{!c.fieldValChange}" /> <lightning:button variant="brand" name="Validate" label="Validate" onclick="{!c.validate}" /> </lightning:recordEditForm>and within validate() in JS
component.find("addrNative").set("v.value", "Accounting");
This works fine as long user is not entering anything in the field,but when user updates the field and clicks on validate, the button doesn't works
any suggestions?