• jameztcc

    (@jameztcc)


    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.

    Thread Starter jameztcc

    (@jameztcc)

    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?

    Thread Starter jameztcc

    (@jameztcc)

    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.