instead of editing my last reply for a 3rd time, thought I'd update in a clean post.
I've been testing things with alerts and noticed that it isn't triggering the main part of the code.
at these lines it seems to not work;
var selectedValueDisplay = $("select[Title='Plans selected values']")[0]; //REPLACE TESTLOOKUPCOLUMNS WITH THE NAME OF YOUR COLUMNif (selectedValueDisplay !== null) { alert("SelectedValueDisplay is not null");
After the if statement, the alert I set does not trigger. Is this portion of code correct? It seems to find and set selectedValueDisplay to something, but it isn't a string or integer because it doesn't alert like one.
UPDATE:
I set the if statement to a (1 === 1) so it will pass and it still doesn't add the item. So although this portion needs to be looked at, it doesn't seem to be the root cause...