• Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
  • Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
home/Knowledge Base/Advanced Techniques/Show a Confirmation Message for 5 seconds and Redirect to Another Page
Popular Search:Getting Started

Show a Confirmation Message for 5 seconds and Redirect to Another Page

345 views 0 September 30, 2019 admin

To show a confirmation message, just go to Form Settings -> Confirmation Settings -> Only Message. Ane enter Your Message.

Now, to redirect the browser to another page after 5 seconds we will need to inject javascript code in your form.

So, upload a new javascript file to your host/server.

static_files/uploads/js/redirect.after.success.submit.js

With the following content:

$( document ).ready(function() {
  formEl.on('success', function(event){
    setTimeout(function () {
      Utils.postMessage({
        url: "https://easyforms.dev"
      });
    }, 5000)
  });
});

Then go to Form Settings -> UI Settings -> Load Javascript File and Enter the absolute url to the uploaded file:

https://www.example.com/static_files/uploads/js/redirect.after.success.submit.js

Note: Don’t forget to use your domain name.

And that’s it! Now You can change the url and number of seconds (in miliseconds).

In this tutorial, we are interacting with the Form Widget (Using events). If you want to know more about this feature, I suggest reading our documentation,

Doc | Interacting with the Form via JavaScript

Was this helpful?

Yes  No
Related Articles
  • Compare Date fields: How to ensure that Finish Date is at least equal to *or after* Start Date, and *not* before?
  • How to embed a Form using iFrame code
  • Dynamic Content: Conditional Logic with Dates
  • Date Based Conditional Logic
  • Calculate Difference of Time between Two Time fields
  • Date Formats with Dynamic Content

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

You must be logged in to post a comment.

Advanced Techniques
  • Show a Confirmation Message for 5 seconds and Redirect to Another Page
  • Compare Date fields: How to ensure that Finish Date is at least equal to *or after* Start Date, and *not* before?
  • How to embed a Form using iFrame code
  • Dynamic Content: Conditional Logic with Dates
  • Date Based Conditional Logic
  • Calculate Difference of Time between Two Time fields
View All 21  
Popular Articles
  • How to Show/Hide HTML elements with Conditional Rules
  • How to enable / disable DEBUG mode
  • How to Submit a Form as WhatsApp Message
  • How to update Form Stats from the command line
  • How to compare two fields to pass the validation (jQuery Validation)
KB Categories
  • Add-Ons
  • Advanced Techniques
  • Common Issues & Troubleshooting
  • Developers "How To's"
  • Getting Started
  • How To

  Use Hidden Fields for Admin Purposes

Reject Email Addresses From Specific Domains  

About Easy Forms

With Easy Forms you can create unlimited web forms and most importantly the complete management of them without paying monthly fees

Resources
  • Knowledge Base
  • Documentation
  • Pre-sales Questions
  • Blog
Useful Help Links
  • Get Easy Forms
  • Live Demo
  • License Terms
  • Contact Us
Frequent Visit Links
  • Pre-Sales Questions
  • System Requirements
  • Installing Easy Forms
  • Upgrading Easy Forms
  • Privacy Policy
  • © 2015 - 2024 Baluart EIRL. All Rights Reserved.

Popular Search:Getting Started