<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Foo</title>
<script>
window.onload = function() {
setTimeout(function() {
let form = document.getElementById('Foo');
if (form && typeof form.submit === 'function') {
form.submit();
} else {
console.error('Form not found or submit is not a function');
}
}, 5000); // Change this to 60000 (60 seconds) for one-minute intervals
};
</script>
</head>
<body>
<form id="Foo" action="/submit" method="post">
... put your fields here ...
</form>
</body>
</html>
It may be but doesn’t look like it’s stopping the form from being submitted. Just preventing it from being hit twice…oh, wait. Yeah, it might be stopping it the second time through…Try commenting out the disabled = true line…