Search field on a frontend form
matteo-greco opened this issue · 1 comments
matteo-greco commented
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
kevindees commented
Hey @matteo-greco
Do you have front-end assets enabled?
https://github.com/TypeRocket/typerocket/blob/master/config/typerocket.php#L12
Thanks,
Kevin