I want to fill the lookup value through JS. I am able to fill the value in a text field but lookup is not working. I am making sure that the value I am putting in the lookup field must be available in look list.
fd.spRendered(function() {
//if opened in dialog
if (window.frameElement && Dialog.getArgs()){
//set Description to the passed Description
fd.field("Title").value = Dialog.getArgs().Title;
fd.field('Response_x0020_To').value = Dialog.getArgs().Title;
fd.field('Department').value = "Accounting";
}
});
Response_x0020_To and Department are my lookup fields.