Power Pages: Pro Code Techniques in the Templates – Custom Search Interface Using JavaScript Redirects


This post discusses how to build a custom search interface using JavaScript redirects in the Program Registration template of Power Pages. The search functionality allows users to filter classes by keyword or dropdowns like category, season, level, and type. The code is located on the web page record itself, in the Copy column or the Custom JavaScript column. The Custom JavaScript attribute contains over 400 lines of JavaScript, which implements the search functionality. The approach is relatively simple to implement, and the number of lines of JavaScript actually in use is very low. The filtering is done server-side, so the client-side scripting is only required to cause the page to reload when new filters are selected.


Article 20m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time