On submitting the form, I want to go back to the same page with the selections that were made. The goal is to allow the user to have to change only one selection instead of having to make all of the selections each time when only one needs to be changed.
Below is the scrip I am using but it doesn't work. Any help would be appreciated
Thanks
<script type="text/javascript">
document.addEventListener('DataPageReady', function (event) {
console.log('Data page ready');
const form = document.getElementById('caspioform');
console.log('Caspio Form', form);
form.onsubmit = function() {
window.history.go(-1);
}
});
</script>