LuluSW Posted August 4, 2017 Report Share Posted August 4, 2017 Hi, I have a tabular report that list my users. One of the fields identify who is active and who is blocked. I want to show an padlock icon on the row of every blocked user. I mean: when the field [@field:Usuarios_Ativo^] value is "no". This is a "yes/no" field type I think that should be easy, but I am really struggling to make this work with my limited java skills. Many thanks Caspio minds! Quote Link to comment Share on other sites More sharing options...
LuluSW Posted August 5, 2017 Author Report Share Posted August 5, 2017 No one can help? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted November 13, 2017 Report Share Posted November 13, 2017 <div id="show[@field:Id]"></div> <script> var d ='[@field:Usuarios_Ativo]'; if (d = 1){ document.getElementById('show[@field:Id]').innerHTML = '<img src="http://someapp.com/nk/icons/emoji/emoji435.jpg" width="25px"/>'; } </script> Insert the code above to a HTML Block in your report page. Make sure to replace [@field:Id] with the unique ID of your fields in the table from picker. Quote Link to comment Share on other sites More sharing options...
PotatoMato Posted December 30, 2021 Report Share Posted December 30, 2021 Hi! Just to update this post. You may refer to this forum post: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.