What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    embed lightbox with an autostart-function

    Asked by guest_23235901010033 on November 19, 2012 at 08:37 PM

    Hello,

     

    to be honest, I´ve no skills in programming webcode. I´m using Sitegrinder 3, a Photoshp plugin which generates sites out of Photoshop. I can embed the lightbox-code in Photoshop and it still works after deploying it, but I want it to start automatically, when I click on a graphical button. At the moment a link appears after clicking the graphical button-and I have to click again on the link to open the lightbox. Can u send me a modified lightbox-script which opens the lightbox when clicking the graphical button?

     

    Yours, Matthias

    Screenshot
  • Profile Image
    JotForm Support

    Answered by idarktech on November 19, 2012 at 09:18 PM

    Hi Matthias,

    May we know the website URL where you've embedded your lightbox form so we can further check what causes the form not to open on initial click? It must be a problem with the codes. Take note that lightbox form should open when its link is clicked once.

    We'll await your reply. Thanks!

  • Profile Image

    Answered by matthiasschwarz on November 19, 2012 at 09:32 PM

    It does so in the "test-mode" in my browser! I´m building my homepage at the moment, it`s not published yet.

    But my problem is-I only want to click the graphical button on my "contact"-page to enter the form. but I need to open a second page with the jotform-script(its done by copy the java code(the lightbox-code) to a text layer with a so called hint(in this case "-embed"). It´s a workaround for this plugin "sitegrinder".

    And I want the second page starting the java-script of the jotform-lightbox automatically. Is it now more clear? Sorry, I´m not a native speaker...

  • Profile Image

    Answered by matthiasschwarz on November 19, 2012 at 09:41 PM

    This is the screenshot of the graphical button which shall open the form. I cannot link the Java code to the button. I can only link to another page(with the script)

     

  • Profile Image
    JotForm Support

    Answered by idarktech on November 19, 2012 at 09:53 PM

    Hi,

    I am not quite familliar with Sitegrinder but in order to link the lightbox to your existing contact us button, you only need to append the lightbox class e.g. lightbox-xxxxxxxxxxx on your existing contact us class.

     

    <script src="//max.jotfor.ms/min/g=feedback2" type="text/javascript">

    new JotformFeedback({

    formId:'23223212299953',

    base:'http://jotformpro.com/',

    windowTitle:'Contact Us,

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:500,

    width:700

    });

    </script>

    <a class="lightbox-23223212299953" style="cursor:pointer;color:blue;text-decoration:underline;">Contact Us</a>

    Let us know if you have further questions. Thanks!