Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter albertomadrid

    (@albertomadrid)

    I saw so many changes in new plugin version.

    May these let me apply this request without code?

    Thanks.

    Thread Starter albertomadrid

    (@albertomadrid)

    Thank you so much.

    Because I don’t know how to handle this jQuery Datepicker I’m really interested into your programmed feature improvement.

    I’m happy to know you added it to your ToDo list! Where I could follow updates to get this as soon as possible?

    Thanks!

    Thread Starter albertomadrid

    (@albertomadrid)

    I solved it adding _variable=value into plugin code (within wpcf7-redirect-script.js) file as detailed here:

    // Build http query
    if ( form.http_build_query ) {
    temp_http_query = jQuery.param( event.detail.inputs, true );
    http_query = temp_http_query.replace(new RegExp(‘\\+’, ‘g’), ‘%20’);
    redirect_url = redirect_url + ‘?_variable=0&‘ + decodeURIComponent(http_query);
    } else if ( form.http_build_query_selectively ) {
    http_query = ‘?_variable=0&‘;
    selective_fields = form.http_build_query_selectively_fields.split(‘ ‘).join(”);
    event.detail.inputs.forEach( function(element, index) {
    if ( selective_fields.indexOf( element.name ) != -1 ) {
    http_query += element.name + ‘=’ + element.value + ‘&’;
    }
    });

    http_query = http_query.slice(0, -1);
    redirect_url = redirect_url + decodeURIComponent(http_query);
    }

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