On a custom new form (For List A) I need to populate several fields with data from List B based on a lookup field selection. This needs to be updated each time the user changes the selection of the lookup.
Example: The user selects their name from the drop down and it auto populates their details that are contained in a second list (B) in to the relevant fields. Data is primarily strings however it also includes setting a second lookup field as well.
If able to it would be good to set a person picker field as well however it is not necessary.
I have not used CSR before but from what I have researched it sounds like the best option, please advise if this is not the case.
Current REST Code:
//Get item ID
var e = document.getElementById("ctl00_ctl45_g_aecb3c18_b892_4c95_af79_151459af0ea2_ff911_ctl00_Lookup");
var itemID = e.options[e.selectedIndex].value;
//GET URLS
executor.executeAsync({
url: "http://<site>/<subsite>/_api/web/lists(guid'EEF86BD3-D8B2-48E8-8F04-5634F3C06375')/getitembyid(" + itemID + ")",
method: "GET",
success: successHandler,
error: errorHandler
});

