RE: setting a field value through jquery which is rendered as dropdown
Hi meenoo,
Could you share me some of your code of implementation and your business requirements?
In my opinion, if we want to change results in lookup field dropdown list with JS, we could work with client API
addPreSearch and addCustomFilter.
Below is my example, filter out opportunities that its topic start with 'g':
function filterAccountLookup() {
try {
Xrm.Page.getControl("new_test_oppo").addPreSearch(function () {
addCustomLookupfilter();
});
} catch (e) {
throw new Error(e.message);
}
}
function addCustomLookupfilter() {
try {
fetchxml = "<filter>" + "<condition attribute='name' operator='like' value = '11' />" + "</filter>";
Xrm.Page.getControl("new_test_oppo").addCustomFilter(fetchxml, "opportunity");
alert('ok');
}
catch (e) {
throw new Error(e.message);
}
}

We can add our filter criteria with collected value from other client API.
From my previous test, I couldn't render my filtered results list on a default field of system entity(contact), then it worked on a new custom lookup field,
you could try to close default view of your entity of its lookup field.
Also, for your current implementation, you could surround actions/steps with try catch statement
Regards,
Clofly