You can do a conditional output by using <WIZIF> So, your VTML portion of
the <TAGLAYOUT> portion can do this:
<mytag <WIZIF fieldname EQ 'true'>TEXT_BOLD = 1</WIZIF>>
This way it would only show up if true, not false or not selected at all.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Kay Smoljak [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 21, 2001 2:25 AM
> To: CF-Talk
> Subject: VTML "edit tag" dialogs: attributes with no value?
>
>
> Hi all,
>
> I hope I can explain this well enough...
>
> I am playing with editing VTML files, and I have a perplexing
> problem. I am
> trying to create one for our CFX_PWIMAGEPROC. This tag has true/false
> attributes that do not require values, ie if TEXT_BOLD is
> present, any text
> the tag draws is bold. If it's not there, the text drawn is not bold.
>
> It's ok in the drop downs within Studio, but I'm trying to make an "edit
> tag" dialog. If I use a checkbox and no value is selected, the
> attribute is
> not included. If the checkbox is checked, TEXT_BOLD="true" is included in
> the output. That's OK, because the tag will ignore the ="true"
> part and make
> any text bold. If the checkbox is set to true and then changed to
> be false,
> rather than removing the attribute completely, it sets it to
> TEXT_BOLD="false". This won't work because the tag is ignoring
> the value of
> the attribute and applying the effect if the attribute is
> present, which is
> obviously not going to give the correct results.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists