Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    You can create a search form using filters.

    Thread Starter SuyashGulati

    (@suyashgulati)

    Sorry for silly question. but where to put `<form action=”” method=”POST”>
    First Name: <input type=”text” name=”fname” />
    Last Name: <input type=”text” name=”lname” />
    <input type=”submit” />
    </form>` and
    [cfdb-datatable form=”Contact Form” filter=”fname~~/.*$_POST(fname).*/i&&lname~~/.*$_POST(lname).*/i”]
    and the other filter code. just to take any example.

    Plugin Author Michael Simpson

    (@msimpson)

    – Put both in a page or post (use Text editing mode in your WP editor).
    – Update the form to replace fname and lname with things your want to search on (perhaps just “pincode”). Pin Code: <input type=”text” name=”pincode” />
    – Change the short code “form” to the name of your form
    – Change the short code “filter” to search for your filter, maybe filter=”pincode=$POST(pincode)” (assuming “pincode” in your form submission data and a “pincode” field in the above search form)

    Thread Starter SuyashGulati

    (@suyashgulati)

    Thank you. i will try. it is a great plugin

    Thread Starter SuyashGulati

    (@suyashgulati)

    it worked. thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘searching pincode’ is closed to new replies.