Thanks Heaps Craig,
The calendar method is a great suggestion. However, with 3 clicks to sign-up, our learners may be distracted away from the signup process.
Simple JavaScript Method
I was keen to keep it simple and hassle-free.
I came up with some simple script that could be added to the Additional HTML section on our site to filter upcoming sessions in Totara LMS based on a 'location' custom field:
- Trainers add a location - via a custom field to the event.
- The script should:
- Hide all events on load.
- Create a dynamic dropdown list based on 'locations' for a given seminar page (i.e. first column in Event View report table).
- Only show upcoming events for the location chosen.
- Show all scheduled events when 'All locations' is selected.
- The Previous events list is not modified.
I created a code pen with the required JavaScript that I wish to share for anyone interested. My JavaScript skills are rusty so any improvements are most welcome.
https://codepen.io/vj/pen/PoQWXvb
Thanks again for your support!