Doug
|
Posted: 05/19/2004, 8:55 AM |
|
Good morning..
Before I post in the CF forum which appears to get little traiffic, I thought I would post here first. I need to hide a search button on a Search form. I am pretty sure the code goes in the BEFORE SHOW event, but I cannot make it work using the HIDE command from Cold Fusion. Right now I am just commenting out the one line of code from CCS that displays the button. But I am not sure if that is a safe approach or not. I need the button hidden permanently so no logic is required.
thanks for any help
Doug
|
|
|
E43509
Posts: 283
|
Posted: 05/19/2004, 12:15 PM |
|
You should be able to use CCS generated value hideButton_DoSearch and set the value to TRUE
Search the cfm file for it
|
|
|
Vi
|
Posted: 05/19/2004, 11:41 PM |
|
Try event "BeforeShow" with code like
<cfset hideButton_DoSearch=true>
You can hide any controls with code like
<cfset hideControl=True>
for CF(without templates)
For CFT for some controls (Label,TextBox...) you need to apply also custom block around the control in the form of extended HTML.
|
|
|
Doug
|
Posted: 05/20/2004, 12:08 PM |
|
hideButton_DoSearch=True did the trick. Definitely one of those RTFM solutions so I appreciate both of your patient replies.
THANK YOU!
|
|
|