CF - Text to appear based on a value

JohnMac328
JohnMac328 used Ask the Experts™
on
I am trying to get text to appear in a text box based on a value.  Nothing is appearing at all.  Any help is appreciated.
<td>
       <cfif Test_Status EQ 1>
				<cfset Test_StatusResult =  "Passed">
		<cfelse>
				<cfset Test_StatusResult = "Failed">
</cfif>
       <cfinput type="text" name="Test_StatusResult"></td>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Commented:
You forgot to add the "value"

 <cfinput type="text" name="Test_StatusResult" value="#Test_StatusResult#">

Author

Commented:
That's right.

Thanks again agx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial