Jump to content
  • 0
glissando

Go Back 1 on form submission

Question

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>

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

The previous response was correct. So instead of Javascript, you just need to redirect the submission form on the same form.

On Exit, you should set the fields to pass the parameter.
You should also enable On Load to receive an external parameter.
image.png.2e19fe96ab77e1620cbb5eb8a273ecac.png

And right, this also works on List Strings. 

Hope this helps. 

 

Share this post


Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...