1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Convert textarea to a yes or no

Discussion in 'Templates, HTML, CSS, and Design Help' started by jason1971, Dec 23, 2013.

  1. jason1971 Customer

    Hi all,

    I am using the shortDescription field to show text in viewlisting/showlisting all works well.

    But I have added a custom search form in which I want the shortDescription to be searchable by using it as a checkbox for a Y if it has text in it, or N if it is empty.

    I seem to have managed to do it like this

    <td> <input type="checkbox" name="searchtext" id="shortdescription" value="Y">

    My only issue now is when the textbox has text in, it shows up as it should.
    But if I the go to modify an ad and remove the text and save. When I do the same search the advert still shows up in the results even though the textarea box is empty.

    Any thoughts ?

    Thanks

    Jason

Share This Page