Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide label for message custom field(for view)

Saketh Reddy
December 13, 2016

image2016-12-14 15:36:3.png

In the above image I dont want to see the label "Note". I am using message custom field (for view) and default value is set as below

<div id='Note' class="aui-message aui-message-info" style= "display:none">

<p class='title'><strong> xyz .....
</strong></p>
</div>

<script type="text/javascript">
var currUrl = window.location.href;
if(currUrl.indexOf("BulkEditDetails") > -1 === false)
{
document.getElementById('Note').style.display = "block";
}
</script>

Any idea on how to hide the label or by default this custom field displays the label?

2 answers

1 accepted

1 vote
Answer accepted
vkrupach_BrizoIT
Atlassian Partner
December 14, 2016

You can do it by adding appropriate CSS or JavaScript to the announcement banner. All custom fields have the same DOM structure:

image2016-12-14 13:19:35.png

So you have to find id for your field and then add to the announcement banner something like:

&lt;style&gt;

#rowForcustomfield_10301 .wrap strong {
display: none;
}
&lt;/style&gt;

Or do the same via jQuery. Please check this answer: https://answers.atlassian.com/questions/44221899

0 votes
Saketh Reddy
December 14, 2016

It worked. thanks

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events