By default, client-side code in Anvil doesn’t have permission to access Data Tables. This is because any code that runs on the client will be accessible to users, and we want our Data Tables to be secure by default.

Our Categories Data Table doesn’t contain any secure information, so we can go ahead and make that table searchable from client code. Go to the Categories table and change the permissions to allow Forms ‘search’ access:

Changing the Data Table permissions to allow Forms to search the Categories table