Update a field in a form without reload

Hi
i have a datetime field in my form to enter a startdate. When i change this field, an ajax event triggers a new query which sends data to a chart. Everything works fine. But now i want to fire another query which search for me the first date in the dataserie. This date i want to show in another datetime field in the same field. I debugged the code: After changing the startdate, a query fires and give me back the date i want. Then i do this:

{MyFirstDate}={ResultFromScLookup[0][0]};

{MyFirstDate} is a datetime field on my form. But this isn’t updated when i change the startdate. It stays on the initial value which i set on “ScriptInit” Event.

So how can i update a field in a form without reloading the form?

Thank’s for your help.
Best regards
Steve

try event onload.

Hi
that does not work because i not want to reload the form. On my {startdate} i have an Ajax on Click Event which works fine for query the new chart data. But how i can set a new value on my form for the field {MyFirstDate}?
{MyFirstDate}={ResultFromScLookup[0][0]}; does not work! Best regards Steve

This should work. Maybe date format is inccorect. Try to var_dump {ResultFromScLookup[0][0]} and check the value