Save form automatically after 10 seconds
Posted: 17 Sep 2018
Hello,
I have a problem where a lot of records need to be re-saved so that the calculation that I am doing on the form level re-calculates. I attempted to execute the save button via code but the data does not save to the list. The data does save if I click the button manually though.
I am doing some % calculations when the page loads and I would like to have the form save after 10 seconds.
I read some articles on maybe how to do this but I haven't been successful.
I've tried triggering the save button by Jquery by: $("savebutton").click();
and using the form designer JS framework: fd.save().click();
setTimeout(function() {
//examples above
}, 10000);
these examples do trigger the button to save and the page acts as if its "saving", and it redirects back to the list but the calculation fields don't save. They do save if I manually click the save button my self though, so I am not sure what I'm missing from the save functions.
I have a problem where a lot of records need to be re-saved so that the calculation that I am doing on the form level re-calculates. I attempted to execute the save button via code but the data does not save to the list. The data does save if I click the button manually though.
I am doing some % calculations when the page loads and I would like to have the form save after 10 seconds.
I read some articles on maybe how to do this but I haven't been successful.
I've tried triggering the save button by Jquery by: $("savebutton").click();
and using the form designer JS framework: fd.save().click();
setTimeout(function() {
//examples above
}, 10000);
these examples do trigger the button to save and the page acts as if its "saving", and it redirects back to the list but the calculation fields don't save. They do save if I manually click the save button my self though, so I am not sure what I'm missing from the save functions.