Validate Algolia Places input

I have an Algolia Places input that is required in a form. How can I make it required and raise an error if it’s left blank or it’s filled with random text (not an actual place)? I can try to solve it by using a javascript hack, but I was wondering if there’s a more easy and official way. Thanks!

Hi @frozeek,

Welcome to the Algolia Community!

You may find some of these methods helpful.

Also, these events could be used to validate the input.

Let us know how this works for you or if I misunderstood your question!