WordPress.org

Forums

Contact Form 7
[resolved] success message in fancybox (2 posts)

  1. berka.pavel
    Member
    Posted 3 years ago #

    Hello,
    is there a way how the success message from contact form submit show in fancybox?

    i´ve tryed this code:

    if (1 == data.mailSent) {
    $(data.into).find('form').resetForm().clearForm();
    ro.addClass('wpcf7-mail-sent-ok');
    // i want fancybox instead of alert
    alert("Thanks for reply!");
    if (data.onSentOk)
    $.each(data.onSentOk, function(i, n) { eval(n) });
    }

    is there any way how to open the message in fancybox? and the best will be when in the fancybox can be shown ajax message from contact form admin.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. berka.pavel
    Member
    Posted 3 years ago #

    ok, i found the solution... fancybox is wrong to this purpose. i download http://www.ericmmartin.com/projects/simplemodal/ and it´s work with

    ro.addClass('wpcf7-mail-sent-ok').modal({overlayClose:true,minHeight:200,minWidth: 500});

    at file scripts.js. maybe help to somebody.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic