WordPress.org

Support

Support » Plugins and Hacks » Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] How to disable "blank" / null search?

[Plugin: Relevanssi – A Better Search] How to disable "blank" / null search?

  • Hi,

    I am trying to restrict empty/blank/null search on wordpress using Relavanssi…how can I do that?

    thanks,
    James Tan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mikko Saari

    @msaari

    What do you mean? Please elaborate.

    What I meant is to dis-allow search of “”(null/empty/blank) inputs. I.e. only if at least 2-3chars are entered as search query.

    Currently without typing anything into the search input, anyone can just perform a query and return results.

    Plugin Author Mikko Saari

    @msaari

    Add a JavaScript to the search form that prevents sending the form unless there’s something in the search field?

    Thanks! Managed to solve the null problem using a javascript to validate form.

    thanks,
    James Tan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] How to disable "blank" / null search?’ is closed to new replies.
Skip to toolbar