default value for lookup
Posted: Fri Jul 06, 2018 10:33 pm
Hi,
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.
Note that I can't take the code or description as they are not unique!
Can anyone help with this? Is it possible? Thanks!
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!