Is it possible to trigger a lightbox form from an image?

  • Profile Image
    nozzmoking
    Asked on May 25, 2012 at 07:16 AM

    I've got a lighbox form working exactly how I want it, but instead of triggering it from a text link I'd like to trigger it from a Contact Us button.

    Is this possible?

    This is what I have at present:

    <script src="//jotformeu.com/min/g=feedback2" type="text/javascript">
    new JotformFeedback({
    formId:'21237118732347',
    base:'http://jotformeu.com/',
    windowTitle:'HomePage Enquiry Form',
    background:'#FFA500',
    fontColor:'#FFFFFF',
    type:false,
    height:450,
    width:600
    });
    </script>
    <a class="lightbox-21237118732347" style="cursor:pointer;color:blue;text-decoration:underline;">HomePage Enquiry Form</a>

    Many thanks.

  • Profile Image
    abajan
    Answered on May 25, 2012 at 07:57 AM

    Yes, that's feasible. Just replace the text between the anchor tags with the image's tag. (You can also remove the color and text-decoration declarations from style attribute because they won't be needed.)

    If you would like clarification on anything, please let us know.

  • Profile Image
    nozzmoking
    Answered on May 25, 2012 at 09:43 AM

    Many thanks, that's really helpful!