Jump to content

referesh 2nd iframe using submission page


Recommended Posts

Hello Harpreet,

Yes, you can give the iframe an ID, then you can update the "src" attribute inside the "BeforeFormSubmit" event.

So, if I have the following iframe on the same page as the submission form:

 

<iframe id="IframeID" name="Details" title="Details" src="https://12345.caspio.com/dp/2f3f32f2f23f32f32">Sorry, but your browser does not support frames.</iframe>

I can add an HTML block/Header/Footer with the following code to my submission form.
 

<script>


document.addEventListener('BeforeFormSubmit', function(event) {
 document.getElementById('IframeID').src='https://12345.caspio.com/dp/2f3f32f2f23f32f32?id=2'
});


</script>

And that will update the iframe, and you can also add parameters to it, as I did, by passing the "id=2".

Link to comment
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
Reply to this topic...

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