Auto submit a form in Zoho Sites

Auto submit a form in Zoho Sites

Hi,

I embed a survey form into Zoho Sites, then I added a time limit for this survey by adding a javascript.
Now I want to take an action that after ending the survey time (ex. 5 min), the form must be auto submitted by the system and alert the user that you are out of time for this survey.

Any solution for this?

Regards,
Thomas