You need to sign in to do that
Don't have an account?
Vanitha Mani
How to update value in detail page
Hi,
I have finish button..which when clicked the field status in case object shd get updated to Resolved..I tried the following code but dint work..Can anyone help me with this.
<lightning:recordEditForm
recordId="{!v.recordId}"
objectApiName="Case">
<lightning:messages />
<div class="slds-grid">
<div class="slds-col slds-size_1-of-2 slds-hide">
<lightning:inputField fieldName ="Status__c" aura:id ="Consent" value ="" />
</div>
</div>
<lightning:button label="Finish" variant="brand" onclick="{!c.update}"/>
</lightning:recordEditForm>
Controller
component.find("Consent").set("v.value", "Resolved");
when i tried alert(component.find("Consent"));
I am getting error like
SecureComponentRef: InteropComponent: markup://lightning:inputField{ key: {"namespace":"c"} }
I have finish button..which when clicked the field status in case object shd get updated to Resolved..I tried the following code but dint work..Can anyone help me with this.
<lightning:recordEditForm
recordId="{!v.recordId}"
objectApiName="Case">
<lightning:messages />
<div class="slds-grid">
<div class="slds-col slds-size_1-of-2 slds-hide">
<lightning:inputField fieldName ="Status__c" aura:id ="Consent" value ="" />
</div>
</div>
<lightning:button label="Finish" variant="brand" onclick="{!c.update}"/>
</lightning:recordEditForm>
Controller
component.find("Consent").set("v.value", "Resolved");
when i tried alert(component.find("Consent"));
I am getting error like
SecureComponentRef: InteropComponent: markup://lightning:inputField{ key: {"namespace":"c"} }
Try the below code:
cmp:
JS:
Thanks,
Maharajan.C