-
russbannerAsked on October 22, 2015 at 4:32 AM
Hi there
I am using the tabs on the feedback form to offer clients quote and also discount offers is there anyway i can delay the tab appearing? or have a pop up box appearing automatically?
http://www.jotform.com//?formID=52935280618965
thanks
Russ
-
Chriistian Jotform SupportReplied on October 22, 2015 at 6:14 AM
Hi Russ,
If you want to automatically show the form popup box in your feedback code, you can try to embed your form using this code instead:
<script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript"> new JotformFeedback({ formId: "52935280618965", buttonText: "Discount Offer", base: "https://form.jotform.com/", background: "#800080", fontColor: "#FFFFFF", buttonSide: "bottom", buttonAlign: "center", type: false, width: 500, height: 500, openOnLoad:true }); </script>
The logic is basically the same on the lightbox popup. You can check this article for more information: How to Auto popup a Lightbox Form.
Do let us know if you need further assistance.
Regards. -
russbannerReplied on October 22, 2015 at 6:46 AM
Hi Christian
How would I add a delay in that box to make that appear say 20 seconds later?
works a treat by the way.
Russ
-
Chriistian Jotform SupportReplied on October 22, 2015 at 8:29 AM
Hi Russ,
Can you try the following steps and see if it will work?
1. Use the original code again (remove openOnLoad:true)
<script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript"> new JotformFeedback({ formId: "52935280618965", buttonText: "Discount Offer", base: "https://form.jotform.com/", background: "#800080", fontColor: "#FFFFFF", buttonSide: "bottom", buttonAlign: "center", type: false, width: 500, height: 500 }); </script>
2. Add additional script to open the pop-up box after 20 seconds upon load.
<script language="JavaScript">
var delayseconds = 20; //seconds to delay
function pause() {
myTimer = setTimeout('whatToDo()', delayseconds * 1000)
}
function whatToDo() {
document.getElementById('jotform-feedback-52935280618965').click();
}
window.onload = pause;
</script>
Do let us know if you need further assistance.
Regards.