PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

submit button send email and open lightbox

  1. cuddysteph
    Member

    hello
    I create a forms with Gravity , and i need when people click on submit button to send me data by mail and in the same time open a lighbox?
    Someone got a tutorial for that ?
    Thanks for help

    Posted 11 years ago on Wednesday March 13, 2013 | Permalink
  2. The email notification will be sent to the admin of the site containing all the submitted data by default. But what is going to be in your lightbox after the form submission? You may be able to use the form confirmation for that, but I'm not sure exactly what you're trying to show, and exactly when that would be. Is it instead of the form confirmation? Or would the confirmation be in the lightbox?

    Posted 11 years ago on Thursday March 14, 2013 | Permalink
  3. cuddysteph
    Member

    in fact when data send me by email, i need people see an open box where they can see calendar and paypal button. So submit button send data and open a new pages where i put my calendar reservation and paypal payement?

    Posted 11 years ago on Thursday March 14, 2013 | Permalink
  4. cuddysteph
    Member

    here an exemple :

    http://jsfiddle.net/doktormolle/RD88Z/

    Posted 11 years ago on Thursday March 14, 2013 | Permalink
  5. I'll ask the development team if there is an approach we can use here.

    Posted 11 years ago on Thursday March 14, 2013 | Permalink
  6. I see three options:
    1- setup your form confirmation as "redirect" or "page" and send users to a page where the calendar is and the paypal button will reside
    2- setup your form confirmation as "text" and write your html in the confirmation text. That way, when the form is submitted, your markup will be displayed.
    3- to open a new popup, you can use the "text" confirmation as well, but write javascript code to popup your window. Something like the following will probably do the trick

    <script type='text/javascript'>
          jQuery(document).ready(function(){
             jQuery.facebox('<iframe width="400" height="400" name="targetbox"></iframe>');
          });
       </script>
    Posted 11 years ago on Thursday March 14, 2013 | Permalink
  7. cuddysteph
    Member

    thanks for your answer i am going to try

    Posted 11 years ago on Friday March 15, 2013 | Permalink