Jump to content
  • 0
Leon13

Webpage refresh forced upon clicking "update" button in Tabular Report

Question

Howdy :)

I added two data pages (Tabular Reports) to my web page.

Only one is editable, the other is only a reference.

Once user updates the editable report I would like to force a webpage refresh.

Already tinkered with the below, but had no luck to get the entire webpage to refresh.

Thank you!  :)

image.png.19d0edde68407f8cf17f2f6623b763ea.png

image.png

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
On 1/25/2020 at 3:19 PM, SinJunYoung said:

Hello, if you are familiar with Javascript, you can apply the FormSubmitted on update. Here's the reference: https://howto.caspio.com/datapages/ajax-loading/

Thank you for your response SinJun.

Do I disable Ajax and paste the below in my HTML editor in my site, where I have the code that links to my Caspio data page?

Do I need to edit the code below?  (the "do something" does not look correct to me, but I am still learning..)

Thank you!  :)

 

 

<script type="text/javascript">
document.addEventListener('BeforeFormSubmit', function(event) {
	// do something
});
</script>

Share this post


Link to post
Share on other sites
  • 0
On 1/26/2020 at 5:47 PM, Leon13 said:

Do I need to edit the code below?  (the "do something" does not look correct to me, but I am still learning..)

I believe this is what you need:

<script type="text/javascript">
document.addEventListener('BeforeFormSubmit', function(event) {
	location.reload();
});
</script>

 

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, kpcollier said:

I believe this is what you need:


<script type="text/javascript">
document.addEventListener('BeforeFormSubmit', function(event) {
	location.reload();
});
</script>

 

Thank you @kpcollier !!  :)   Worked like a charm.  Greatly appreciate your help!

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...