[SOLVED] How to display lookup on init?

I have a form where you can select the parent of a child. After selecting the parent an onchange ajax event triggers and it will display the name and some other data from the parent in a label. But if I recall the record, the onchange is not triggered and thus the parent field stays empty. Only the database parent id is filled with the id (just a number). How can I trigger the lookup when the data is displayed initially from the table?

Re: How to display lookup on init?

Hello,

You could set a value to it on the onScriptInit event, see below:

{myField} = “Some Value”;

regards,
Bernhard Bernsmann

Re: How to display lookup on init?

Hi. Let me see an Image of the case.
Thanks.
JG

Re: How to display lookup on init?

The issue is solved…