How to display contents based on option selected from dropdown

image
As per the image when i select an option and click on View Button i want to show a table with pagination with respect to option selected.

The data will be fetched dynamically from using Kirby.

All the data is present in the file_name.txt just need to call it on View Button click and show it in a table with pagination.

Could you help me with a possible way to do it in Kirby way? Thanks

Your best bet would be a json content representation fetch via Ajax on button click

https://getkirby.com/docs/guide/templates/content-representations

1 Like

Thanks again. This will help me to build it if not complete it. :slightly_smiling_face: