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

    (@zhannak)

    Hi Colin,

    Thanks for your inquiry.

    Colin, please try to add this code:

    function getParameterByName(name, url) {
             if (!url) {
                  url = window.location.href;
             }
             name = name.replace(/[[]]/g, "$&");
             var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
                 results = regex.exec(url);
             if (!results) return null;
             if (!results[2]) return '';
             return decodeURIComponent(results[2].replace('/+/g', " "));
        }
        jQuery("#wdform_5_element7").val(getParameterByName("test"));
        jQuery("#wdform_5_element7").attr("class", "input_active");

    Please make sure to choose the correct ID.

    If for some reason this won’t help, then please try to inspect element to see whether you have any errors.

    Thread Starter colcrlogist

    (@colcrlogist)

    Thank you, not sure what the difference is but that is working – 5 stars 🙂

    Plugin Support Zhanna Khachatryan

    (@zhannak)

    Awesome @colcrlogis!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Insert Parameters from URL’ is closed to new replies.