• Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Sign Up
  • Log Out
  • Get Easy Forms
  • Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Sign Up
  • Log Out
  • 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

208 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
  • Dynamic Content: Conditional Logic with Dates
  • Date Based Conditional Logic
  • Calculate Difference of Time between Two Time fields
  • Date Formats with Dynamic Content
  • Create Users that Can Only Submit Forms
  • How To Calculate Age From Date Of Birth

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
  • Dynamic Content: Conditional Logic with Dates
  • Date Based Conditional Logic
  • Calculate Difference of Time between Two Time fields
  • Date Formats with Dynamic Content
  • Create Users that Can Only Submit Forms
View All 19  
Popular Articles
  • How to enable / disable DEBUG mode
  • How to update Form Stats from the command line
  • How to RTL (right-to-left) a Form?
  • How to Remove the Default Choice from a Select List Field
  • 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 - 2022 Baluart EIRL. All Rights Reserved.

Popular Search:Getting Started