TypeRocket/typerocket

Search field on a frontend form

matteo-greco opened this issue · 1 comments

Hello!
I have a search field that looks for posts in a certain post type:

echo $form->search( 'id_stabilimento' )->setPostType( 'stabilimenti' )->setLabel( 'Stabilimento' );

It's working great in a custom resource page in the backend. However, it doesn't allow me to pick anything when displayed in a frontend form (while all other fields work fine). What should I do to get it to work?

Thanks