Refresh value based on Change event

I have a form with multiple input fields. I need to auto-populate a field based upon the dates entered in 2 other fields. I tried to handle the OnChange event of one of the date fields to calcualate the difference between these 2 dates and populate the value. The logic worked for saving the values to DB, but not for displaying it at runtime in the form field as desired.

Any suggestions are welcome.

If you can please upload the espace, it seams that is missing some ajax refresh, but if you upload the espace we can take a look.


I think there are some logical issue in your code if you can attach your oml then I can look into it.