After making an AJAX request, I have been able to populate fields on a form. However I also need to set the value of a look up column to the same value from the second list (LIST A and B both have a lookup column to the same column in List C)
The below code is the lines I am using to set the fields. Line 1 sets a normal single line field to the correct data however line 2 does not change the lookup (in dropdown format).
I have also double checked that the column internal name is Branch
document.getElementById('ctl00_ctl45_g_aecb3c18_b892_4c95_af79_151459af0ea2_ff11_ctl00_ctl00_TextField').value = $(this).attr('jcvr'); document.getElementById('ctl00_ctl45_g_aecb3c18_b892_4c95_af79_151459af0ea2_ff811_ctl00_Lookup').value = $(this).attr('Branch');