Automatic page reload after subscription

Support forumCategory: QuestionsAutomatic page reload after subscription
Petar asked 5 years ago
Hi,  As some of my clients make appointments for several events at a time, I used javascript:window.location.reload(true) in the "Go to page" field to reload the current page and let them make multiple appointments. This does not work any more. What can I use to achieve that effect?  
3 Answers
Nikola Loncar Staff answered 5 years ago
Hi Petar, can you please share the link to that page? I will have to check what is going on there. Best regards, Nikola
Petar replied 5 years ago

sure thing: http://etmachibo.com

Petar replied 5 years ago

Chrome encounters the following error:
VM184:1 Uncaught ReferenceError: fbq is not defined
at eval (eval at (jquery.js?ver=1.12.4:2), :1:4)
at eval ()
at jquery.js?ver=1.12.4:2
at Function.globalEval (jquery.js?ver=1.12.4:2)
at Ha (jquery.js?ver=1.12.4:3)
at n.fn.init.append (jquery.js?ver=1.12.4:3)
at Object.success (frontend-bootstrap.js?ver=5.0.2:835)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at y (jquery.js?ver=1.12.4:4)

Does that help?

Petar replied 5 years ago

That happens when I press the submit button, see the Ready! message confirming the appointment has been made and when the idea is for the page to refresh.

Nikola Loncar Staff answered 5 years ago
Hi Petar, thanks for the link. Instead of submit.redirect: "javascript:window.location.reload(true)" place link to your site: http://etmachibo.com/ inside EA Settings > Customize page. Best regards, Nikola
Petar replied 5 years ago

The thing is that I have EasyAppointments on several different pages to facilitate my clients. That’s why I am looking for a way to reload the page they are currently on.

Nikola Loncar Staff answered 5 years ago
Hi Petar, you can have it even now just put blank " " space inside that Go to page option. :) Best regards, Nikola
Petar replied 5 years ago

Ouf! I finally found out what was wrong! Remember that javascript error I posted above? Well, that was generated by a script I tried to insert in the field for confirmation message. That script was from Facebook and was supposed to track how many people who came from a Facebook ad actually booked an appointment. I removed it, reinserted javascript:window.location.reload(true) in the Go to page option and voila! The page reloads.

Nikola Loncar Staff replied 5 years ago

Hi Petar, thanks for the update 🙂

Best regards,
Nikola