Creating Help for a Custom Field - Can't get more than one to work

Steven Tomlinson October 14, 2016

So I am following the instructions put here https://confluence.atlassian.com/jira064/creating-help-for-a-custom-field-720412166.html for adding in a help area for our custom fields.  I have 6 fields that I need to add help for.  I was able to change the text on the first one and it worked perfectly.  Now when I try and do the others, every time you click on the help icon, it only opens up the first ones hidden text.  

 

I have tried to change the text after document.getElementById and div id= to make them unique, but that just results in the help icon not opening.  Has anyone had issues like this in the past and what was done to resolve?  I appreciate any and all help

3 answers

0 votes
Eva Fernández December 5, 2016

Have you solved it? I have the same problem.

0 votes
Steven Tomlinson October 17, 2016

 Using the code below:

Help
<script type="text/javascript">
   function showHelp() {
         var listenersDiv = document.getElementById("qaFieldHelp");
         if (listenersDiv.style.display == 'none') {
           listenersDiv.style.display = '';
         } else {
           listenersDiv.style.display='none';
         }
   }
 </script> <a href="#"  onclick="showHelp(); return false;"><img src="/images/icons/ico_help.png"/></a>
 <div id="qaFieldHelp" style="display:none">
DETECTION:      Assuming the failure has taken place - this is the probability that it will be detected before it reaches the customer. (for Design FMEA - this may be production.) <table width="100%" border="1">   <tr>     <td><b>RANK</b></td>     <td><b>CRITERIA</b></td>     <td><b>PROBABILITY</b></td>   </tr>   <tr>     <td>1</td>     <td>Very high probability</td>     <td>86 - 100%</td>   </tr>   <tr>     <td>2</td>     <td>Higher probability</td>     <td>77 - 85%</td>   </tr>   <tr>     <td>3</td>     <td>High probability</td>     <td>66 - 76%</td>   </tr>   <tr>     <td>4</td>     <td>High to Moderate probability</td>     <td>56 -65%</td>   </tr>   <tr>     <td>5</td>     <td>Moderate to high probability</td>     <td>46 - 55%</td>   </tr>   <tr>     <td>6</td>     <td>Moderate probability</td>     <td>36 - 45%</td>   </tr>   <tr>     <td>7</td>     <td>Moderate to Low probability</td>     <td>26 - 35%</td>   </tr>   <tr>     <td>8</td>     <td>Low to Moderate probability</td>     <td>16 - 25 %</td>   </tr>   <tr>     <td>9</td>     <td>Low probability</td>     <td>6 - 15%</td>   </tr>   <tr>     <td>10</td>     <td>Remote probability</td>     <td>1 - 5%</td>   </tr> </table> </div>
0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2016

Can you show us the code you're using?

Suggest an answer

Log in or Sign up to answer