i am trying to set value to the lightning:inputField using the value attribute. The value attribute seems to work during the init handler event of the component. however i have a onchange for lightning:select . i want to set a custom value to the lightning:inputField(example, component.find("name").set("v.value","testing")
). but it doesnt seem to work. however i noticed from console.log, the value attribute is getting changed but it doesnt reflect neither in UI nor while saving to the DB.
Best Answer
Finally i got the value attribute to be working.
We have to Set the fieldName attribute and also the value attribute.