Back Button from event page back to calendar for event list
-
We are using a calendar view for all events and a lsit view for our masterclass categories. See ttps://www.theoldrectorygardens.co.uk/events/ for all events and https://www.theoldrectorygardens.co.uk/masterclasses/.
We have a gravity form embedded in most of the events (for people to book the event ). When a user clicks into the single event we want the use to have a back button that takes them back to the oringinal place in the claendar/listing not back to the start.
We have used the the following java code embedded in the event post:
<button onclick=”goBack()”>Back to Events</button>
<script>
function goBack() {
window.history.back();
}
</script>
This works like the “back button” on a browser going back to the last page. This would work fine normally, but the issue is with the gravity form. If someone submits to book an event you have to click the back button twice, which is confusing. Can someone please help as I have limted technical, php knowlegde.The page I need help with: [log in to see the link]
- The topic ‘Back Button from event page back to calendar for event list’ is closed to new replies.