Prefill form field based on last known (the form has a date field) value of that field

Prefill form field based on last known (the form has a date field) value of that field

I want a way to seed a numeric field on a form with the last known value of that field. Is this possible?

How can I achieve this? I suppose it is some sort of OnLoad deluge script? Any snippets?