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
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
glissando
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>
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.