How to filter the content in a repeater?

https://www.psquareinternational.com/test-1

My users, while signing-up, specify their Abacus level, which is stored in the contacts database as their “Alevel”.

A collection on my site called “Sums” contains questions, each of which has a “level” property. How do I ensure that only (level==2) sums are displayed in the repeater on the the repeater for an (Alevel==2) student, and so on.

Basically I’m trying to ensure each user sees questions of the level that matches his own.

NOTE: The page-code has a getCUserLevel() function that gets the current user’s level from the contacts database.

Hi,

I was able to find a solution to this question from a similar post here . If you have a function that gets the current user’s level from the contacts database already, you should be able to use the filter API to filter the results in the repeater.

Hope this helps!
Edward | Corvid Team