Jump to content
Sign in to follow this  
Master

Check Mark For Yes Value On Report

Recommended Posts

Add a HTML to your report page instead of actual field and use the code below.

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

if ("[@field:YESNOFIELD]" == "Yes"){
document.getElementById('icon[@field:Id]').innerHTML="<img src='URL OF ICON'/>";
}
</script>

[@field:Id] is the unique ID of the record which needs to be replaced and also [@field:YESNOFIELD] is the field that holds Yes/No value

Share this post


Link to post
Share on other sites

Also, I entered it like this: 

 

Tourneys <span id="icon[@field:tourneys]"></span><script>
 
if ("[@field:tourneys^]" == "Yes"){
document.getElementById('icon[@field:tourneys]').innerHTML="<img src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>";
}
if ("[@field:tourneys^]" == "No"){
document.getElementById('icon[@field:tourneys]').innerHTML="<img src='http://assets.goplaypool.com/files/theme/appcas/check_02.png'/>";
}
</script>
 
**** And only the first two records show the results, and rest of them don't????
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...