I can't seem to select a default value for a lookup object upon loading the edit screen.
This is my attempt, to set a value but it does not work. 5afaa13eb523846 is the primary key of the record on the lookup form.
Code: Select all
$('#user_idcode').val('5afaa13eb523846').change();
Can anyone help with this? Is it possible? Thanks!