text field with prepopulated description

Neeta Dubey 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

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 Leaders.
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.

Suggest an answer

Log in or Sign up to answer