Jump to content

Remove the text in the Header and Footer element on the "Dispay a message" screen


Recommended Posts

Hi,

Want to share the solution on how to change the text in the Header and Footer elements on the "Dispay a message" screen of the Submission form.


When submitting the form the heading and footing are shown as well:


image.png                   image.png
 

 To prevent it from happening, insert the following code into HTML editor after clicking on the "Source" button on the "Dispay a message" screen:

Your submission was successful.
<script>
document.addEventListener("DataPageReady", function(){
 var node = document.querySelector('*[id^="cbOuterAjaxCtnr"]');

 node.firstChild.remove();
 node.lastChild.remove();

});
</script>

image.png

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