Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

hide elements contatinig empty {$."field"$}.

I would like to know if there is the possibility to hide elements containing empty fields.
For example,  in my template I have a
<TEXTAREA class="myTextareaClass"> {$.Sidebar}</TEXTAREA>. When {$.Sidebar} is empty I obtain an empty textarea.Is it possible not to show the textarea when the {$.Sidebar} field is empty? how can I do this?
thank tou!

camilla bonati
Thursday, June 20, 2002

I made it out, using:
{$ if nonblank
      .Sidebar $} <TEXTAREA class="myclass">{$.Sidebar$}</TEXTAREA>
{$ endif $}

thank you anyway!

camilla bonati
Thursday, June 20, 2002

*  Recent Topics

*  Fog Creek Home