Hi all, I am trying to find or make some Liquid code for fetching a record from a filtered list. I have 2 related tables with countries (parent) and cities (child), and 2 web pages with a list (countries on one page and cities on the second page). The page with the cities (child) is then filtered by the selected parent record on the countries page (some javascript code filtering child list based on ID of parent record).
At the top of the cities page I am trying to add some dynamic text using Liquid (and fetchxml?), saying something like "This list shows all cities in <name of the selected parent record>".
Or would jQuery or JavaScript or anything else be a better solution?
Would highly appreciate any good tip or code snippet that I can use 🙂