• I needed to create a form in which:

    1. a user could choose from a dropdown list of pages
    2. clicking the Submit button would take the user to their selected page

    The list of pages needed to be easily updatable in future by my client from within a plugin (without needing to code).

    Form Maker is the ONLY plugin out of 15 I tried which could achieve all this! BRAVO!!

    I searched for hours among forums but no free plugin could easily be set to have a conditional redirect. The winning formula in Form Maker is the ability to add custom js code.

    So for anyone interested, the trick is to cancel the default Submit event, and then rewrite it. In the form Settings / Javascript, I added the following code BELOW the built-in functions. Feel free to use, just replace the IDs below with those of your own Submit and Select elements:

    jQuery(document).ready(function($) {
         $('#goBtn')[0].onclick = null;
         $(function(){
              $('#goBtn').on('click', function () {
                   var url = $('#wdform_2_element6').val();
                   if (url) {                    
                        window.location = url;
                   }
              });
         });   
    });

    Hope it helps!

Viewing 1 replies (of 1 total)
  • Plugin Support Zhanna Khachatryan

    (@zhannak)

    Hi @indirectdesign,

    Thank you very much for sharing your Form Maker experience with other users.

    Our Custom Javascript and MySQL Mapping options make it really an advanced plugin among other WordPress form making plugins.

    Hope your findings will help other users too.

Viewing 1 replies (of 1 total)
  • The topic ‘Form redirect based on selected URL’ is closed to new replies.