How do I tell pagination there is no more results to load

I have been googling and reading the documentation on the site but I cant seem to find a way to tell select2 there are no more results to load.

When scrolling it is load 20 records at a time and when it gets to the end it still says ‘loading more’ and continues to ask for more pages when there is no more data to load.

The pagination documentation says your remote data source’s JSON response must include a “pagination.more” field whose value is true when there is more data, and false when there is no more data to load.

Ah yes thank you, I set it up and then came back to it some days later and forgot what that parameter was for. Started looking in the wrong places lol. Thank you.

I’m glad I was able to help :slight_smile:.