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

    trace on which page a feedback button is completed

    Asked by Giftsngadgets on April 28, 2014 at 02:04 PM
    which page
  • Profile Image

    Answered by Giftsngadgets on April 28, 2014 at 02:18 PM

    HI there, 

    Sorry, clicked the post button accidently.

     

    Here's the intention: 

     

    I have a Joomla site and currently I have a form that resides in an HTML module in the sidebar from the product pages (e.g. http://www.gifts-n-gadgets.co.za/usb-memory-sticks/popular-usb-memory-stick/item/1853-swivel-too-flash-drive-ud107-1gb-to-8gb.html)

    However, I would like to replace this module with a feedback button.

    The issue however is that the form shows me on which page the form has been completed, so that I can see for which product the customere is inquiring.

    The form code: 

    <script type="text/javascript">

    document.write("<script src=\"http://form.myjotform.com/jsform/31702508526551?referrer=" + window.location.href + "\"></" + "script>");

    </script>

     

    Were the feedback button code is different : 

    <script src="//max.jotfor.ms/static/feedback2.js?3.2.1611" type="text/javascript">

      new JotformFeedback({

         formId    : "31702508526551",

         buttonText  : "Get a quote now!",

         base    : "http://myjotform.com/",

         background  : "#484848",

         fontColor  : "#FFFFFF",

         buttonSide  : "right",

         buttonAlign  : "center",

         type    : 2,

         width    : 600,

         height    : 700

      });

    </script>

    Can I still use this refferer function when I use the feedback button instead of the form? 
    Regards
    Edwin 

     

     

     

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 28, 2014 at 02:40 PM

    Hi Edwin,

    That is still possible with feedback embed code. You can use a parameter on the feedback code to populate data on the form field. 

    Example:

    <script src="//www.jotform.com/min/g=feedback" type="text/javascript">

    new JotformFeedback({

    formId: "xxxxxxxxxxx",

    buttonText: "rating",

    base: "http://www.jotform.com/",

    iframeParameters: {

         'referrer': window.location.href

    },

    background:'#F59202',

    fontColor:'#FFFFFF',

    buttonSide: "bottom",

    buttonAlign: "right",

    type:false,

    width: 700,

    height: 500

    });

     

    </script>

    More details: http://www.jotform.com/help/83-Adding-parameters-in-Lightbox-and-Feedback-forms

    If you can't get it to work, let us know here so we can provide you further assistance. Regards!

  • Profile Image

    Answered by Giftsngadgets on April 29, 2014 at 03:06 AM

    Hi there, 

     

    I have inserted the code with the style adjustments of the button as I prefer it :

     

    <script src="http://www.jotform.com/min/g=feedback" type="text/javascript">

    new JotformFeedback({

    formId"31702508526551",

    buttonText"Get A Quote",

    base"http://www.jotform.com/",

    iframeParameters{

         'referrer'window.location.href

    },

    background"#484848",
    fontColor"#FFFFFF",
    buttonSide"right",
    buttonAlign"center",
    type2,
    width600,
    height700

    });

    </script>
        <style type="text/css">

    .jotform-feedback-link{

      width:250px;

      font-size30px !important;;

    }

    </style>  

     

    However, 

    The referer field is still blank in the output of the form 

    and when I click the button, I get a pop-up / i-Frame with the following error:

    Invalid Form URL
    This form is not available for this domain.
    http://www.myjotform.com/form/31702508526551

     

    But when I click the link, it opens the right form, which works except for the referrer field being blank .

    Please assist asap

     

    Regards

     

    Edwin 

     

  • Profile Image

    Answered by Giftsngadgets on April 29, 2014 at 03:09 AM

    You can find a screenshot image here: http://awesomescreenshot.com/0002q5u9d2

    Edwin

  • Profile Image
    JotForm Support

    Answered by ashwin_d on April 29, 2014 at 05:55 AM

    Hello Edwin,

    Your form is associated with domain myjotform.com. The "base:" url need to be changed in your feedback form code. Please use the following code and that should solve your problem:

    <script src="//www.jotform.com/min/g=feedback" type="text/javascript">

    new JotformFeedback({

    formId: "31702508526551",

    buttonText: "Get A Quote",

    base: "http://www.myjotform.com/",

    iframeParameters: {

         'referrer': window.location.href

    },

    background: "#484848",

    fontColor: "#FFFFFF",

    buttonSide: "right",

    buttonAlign: "center",

    type: 2,

    width: 600,

    height: 700

    });

    </script>

        <style type="text/css">

    .jotform-feedback-link{

      width:250px;

      font-size: 30px !important;;

    }

    </style>  

     

    Do test the above code and get back to us if the issue persists.

    Thank you!