I'm having a problem while I'm developing a lightning component. I have taken a attribute of type Custom object and using that displaying a Input field which s coming like a lookup and putting the value and saving that till here it is woking fine after getting success i just wanna make this field empty or null but its not being possible I tried lots of ways.

enter image description here

<force:inputField value="{!v.fumoSplit.Funtional_Unit__c}" required="true" aura:id="functionalUnit" /> 

It is coming using above syntax.

and I tried following syntaxes to make it empty:

component.find("functionalUnit").set("v.value", fumoSplit2.Funtional_Unit__c);
component.set("v.fumoSplit", null);

But unable to make it blank.

  • I think, we need full code of component, controller and helper, in order to help you Apr 12 '18 at 8:01
  • give me your email Id i'll send you @AlexanderBerehovskiy
    – AkshAy
    Apr 12 '18 at 8:03
  • @ArkshAy you can post it in your question :) just edit it Apr 12 '18 at 8:03
  • Please check now
    – AkshAy
    Apr 12 '18 at 8:10

Got the answer: var funitLookup = component.find('auraid').get('v.body')[0]; funitLookup.updateValues();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.