Jump to content

caspio

Administrators
  • Content Count

    54
  • Joined

  • Last visited

  • Days Won

    54

caspio last won the day on December 26 2020

caspio had the most liked content!

1 Follower

About caspio

  • Rank
    Site Admin

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Single Status Update

See all updates by caspio

  1. posted this matter on the forums and no respond.
    using HTML block would like to show values for some fields as images (like a check mark) and so on.... The script I have, responds nicely for the first 2 data fields and then doesn't function further! Also, would like the fields NOT to appear at all, if the value is blank.
    Script, I am using:

    <span  style="color: #A1A1A1;
        font-size: 12px;
        font-family: Arial, sans-serif;
        font-style: normal;
        font-weight: normal;">21+</span>

    <span id="icon[@field:age]"></span>
    <script>

    if ("[@field:age]" == "No1"){
    document.getElementById('icon[@field:age]').innerHTML="<img width='15px' src='http://someapp.com/nk/icons/yellowflag.png'/>";
    } else if ("[@field:age]" == "Yes1"){
    document.getElementById('icon[@field:age]').innerHTML="<img width='15px' src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>";

    </script>

    <span  style="color: #A1A1A1;
        font-size: 12px;
        font-family: Arial, sans-serif;
        font-style: normal;
        font-weight: normal;">Tournaments</span>

    <span id="icon[@field:tourneys]"></span>
    <script>

    if ("[@field:tourneys]" == "No2"){
    document.getElementById('icon[@field:tourneys]').innerHTML="<img width='15px' src='http://someapp.com/nk/icons/yellowflag.png'/>";
    } else if ("[@field:tourneys]" == "Yes2"){
    document.getElementById('icon[@field:tourneys]').innerHTML="<img width='15px' src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>";

    </script>

    <span  style="color: #A1A1A1;
        font-size: 12px;
        font-family: Arial, sans-serif;
        font-style: normal;
        font-weight: normal;">Leagues</span>

    <span id="icon[@field:leagues]"></span>
    <script>

    if ("[@field:leagues]" == "No3"){
    document.getElementById('icon[@field:leagues]').innerHTML="<img width='15px' src='http://someapp.com/nk/icons/yellowflag.png'/>";
    } else if ("[@field:leagues]" == "Yes3"){
    document.getElementById('icon[@field:leagues]').innerHTML="<img width='15px' src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>";

    </script>

     

    Thank you in advance! :)

×
×
  • Create New...