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

    Pass PHP variables to Light Box

    Asked by Simon Lee on September 01, 2013 at 04:50 PM

    So I was using this code:

     

    <script src="http://www.jotform.com/min/g=feedback" type="text/javascript">
    new JotformFeedback({
    formId:'##########',
    base:'http://www.jotform.com/',
    iframeParameters: {
         'formfieldname1':'value1',
         'formfieldname2':'value2'
    },

    windowTitle:'Website error form',
    background:'#000000',
    fontColor:'#FFFFFF',
    type:1,
    height:500,
    width:620
    });
    </script>
    <a id="lightbox-#########" style="cursor:pointer;color:blue;text-decoration:underline;">Website error form</a>

     

    But I want to pass PHP variables to feilds like so:

    <?php $var= $_GET['var']; ?>

    with:

    iframeParameters: {
         'formfieldname1':'
    <?php echo $var; ?>'
    },

     

    But this is not working, any suggestions?

    variables JotForm style size height
  • Profile Image
    JotForm Support

    Answered by jonathan on September 01, 2013 at 05:23 PM

    Hi Simon,

    Can you please share to us the form where you are trying to do this? We will check further.

    Thanks.