Skip to main content
Inspiring
July 8, 2009
Answered

<cfselect> display boolean values

  • July 8, 2009
  • 1 reply
  • 895 views

I am trying to create a cfselect on a search page that checks for a boolean value in an access database. It works when I put a 1 or 0 in the option/values, but I want it to say yes or no instead of 1 or 0  -- novice - thank you-- jim

<label for="Addressed">Addressed:</label>
<cfselect name="addressed" id="addressed" >
<option value="">Select an option.</option>
<option value="1">1</option>
<option value="0">0</option>
</cfselect

This topic has been closed for replies.
Correct answer Dan_Bracuk

What would happen if you changed this:

<option value="1">1</option>
to this

<option value="1">yes</option>
?

1 reply

Dan_BracukCorrect answer
Inspiring
July 8, 2009

What would happen if you changed this:

<option value="1">1</option>
to this

<option value="1">yes</option>
?

rockhikerAuthor
Inspiring
July 8, 2009

thank you

- i am awake now!