The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

text field with prepopulated description

Neeta Dubey
Contributor
November 14, 2013

I have written a code for full description field. I want some text to appear in blue color however its not working. please help

<script type="text/javascript">

if (AJS.$("#customfield_10502").val() == '')

AJS.$("#customfield_10502").val("{color:blue}This line will appear in blue color{color}")

</script>

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jobin Kuruvilla [Adaptavist]
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 Champions.
November 14, 2013

Can you check that the field is using wiki markup renderer? Also, the color will appear only in the preview section and on the view screen.