-
GiftsngadgetsAsked on April 28, 2014 at 2:04 PM
-
GiftsngadgetsReplied on April 28, 2014 at 2: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?RegardsEdwin -
Elton Support Team LeadReplied on April 28, 2014 at 2: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!
-
GiftsngadgetsReplied on April 29, 2014 at 3: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",
type: 2,
width: 600,
height: 700
});
</script>
<style type="text/css">
.jotform-feedback-link{
width:250px;
font-size: 30px !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 URLThis form is not available for this domain.
http://www.myjotform.com/form/31702508526551But when I click the link, it opens the right form, which works except for the referrer field being blank .
Please assist asap
Regards
Edwin
-
GiftsngadgetsReplied on April 29, 2014 at 3:09 AM
You can find a screenshot image here: http://awesomescreenshot.com/0002q5u9d2
Edwin
-
Ashwin JotForm SupportReplied on April 29, 2014 at 5: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!