Hello,
when adding a record a could inizialize a text box using client side script with
document.getElementById("x_my_table_field").setAttribute("value", my_Value);
I tried to do something similar for a select2 control associated to a lookup filed but without success.
I first tried
document.getElementById("x_id_zip_code").setAttribute("value", myZip);
document.getElementById("x_id_zip_code").trigger('change');
but i couldn't end with the select box inizialized with myZip
What's wrong?
How should I do it?
Regards,
John