Skip navigation
Currently Being Moderated

Hide td in spry data

May 30, 2012 4:54 AM



I have a table that is populated using a spry datat set.


I have people's names, date of birth, nationality...and date deceased.


On the date deceased, if the person is dead i want to display the date as inputed in the xml. If it is empty, that means the person is still alive, so instead of having a blandk area or 'td' if the person is alive, i want it to be written 'alive'.


Ive tried this and other solutions but so far nothing has worked:


<td class="button" style="padding: 8px;"><span spry:if="{ds_UnfilteredRowCount} != 0">{died}</span>Alive!</td>



  • Currently Being Moderated
    May 30, 2012 6:51 PM   in reply to SpryNet

    please supply a link to your site



    Mark as:
  • Currently Being Moderated
    May 30, 2012 8:10 PM   in reply to SpryNet

    Try similar to

    <td spry:if="'{died}' == '0'">Alive</td>

    <td spry:if="'{died}' != '0'">{died}</td>


    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points