Limit select field to PDF document?

Looking at the docs and searching the forum I can’t seem to find an answer to this.

I would like to create a page field where you can only select a PDF document.

Is this possible?

Thanks

You could limit the select field to documents, if you don’t upload any other document types, this will work. Other than that, you can create a custom version of the select field.

https://getkirby.com/docs/cheatsheet/file/type/#all-file-types

1 Like

Something like this?:https://github.com/storypioneers/kirby-selector

Does the built in select field have filter available? That would be a useful feature

That’s what I suggested or at least wanted to suggest, you can use the built-in select field with options set to documents.

https://getkirby.com/docs/cheatsheet/panel-fields/select

1 Like