How to create a search form

Plugin need to be activate for this: ResalesOnline Webkit

Necessary codes


[property_searchform ]

[ps_field field="ref" ]

[/property_searchform]


where,
property_searchform is opening and closing tags.
action is page destination where you want to redirect after submit button pressed.
ps_field is to generate fields of search form
field="" is for specifically define what field need to be called.

Output of above code is, [property_searchform action="/property-search/"] [ps_field field="ref" ] [/property_searchform]

Following fields can be insert in search form

field=”xxx”

so xxx can be replaced by followings,
ref
status
location
type
price_min
price_max
bedrooms
bathrooms
order
submit
reset

What other things we can insert in field tag


can insert label and class in field tag.

For example:

[ps_field field="ref" label="Reference" class="ref"]

Where
label is a text which is pre written on field and class is to apply CSS for that specific field.


Output of above code is,
[ps_field field="ref" label="Reference" class="ref"]

Now combining everything mention above to generate a search form




[property_searchform action=""] [ps_field field="ref" label="Reference"] [ps_field field="status" label="Status of property"] [ps_field field="location" label="Location of property"] [ps_field field="type" label="Property Type"] [ps_field field="price_min" label="Minimum Price"] [ps_field field="price_max" label="Maximum Price"] [ps_field field="bedrooms" label="No of Beds"] [ps_field field="bathrooms" label="No of Baths"] [ps_field field="order" label="Order List"] [ps_field field="reset" label="Reset Form"] [ps_field field="submit" label="Submit Query"][/property_searchform]
Print Friendly, PDF & Email