Dynamically change pagination limit


I am using pagination in a page that loads product thumbnails. I would like to have an input that lets the user select the number of items per page from a predefined list e.g. (12, 24, 36, 48). I have created the select input but am in loss of how to reload the page with the updated pagination option. I would really appreciate if someone has an idea of how to go about it.

Thanks in advance.

You can use get('name_of_input') to get the value from the input field: https://getkirby.com/docs/toolkit/api/helpers/get

That helped! Thanks.