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: 

How to write html and javascript in custom field description?

RSP
Contributor
August 16, 2021

Basically, I want to add help button to custom field  and on click of that button need to display some information. Prefer below image please as I want same.

Help text.png

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -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.
August 16, 2021

I would not try to do this, just present the full text to people instead.  Atlassian are doing the right thing in gradually removing the ability to inject dubious javascript into fields like that, so even if you could get it right, it's going to stop working soon.

RSP
Contributor
August 16, 2021

But right now, working on this requirement.

please provide JavaScript code if you have any so that I can add in field description.

Nic Brough -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.
August 18, 2021

I've not written bodges like this for years, since I realised they were such an awful thing to do and needed to stop.  I'm afraid I have no code to share, I've moved to doing things like this in different ways (ones that work properly and don't need maintenance)

I'd question the "need" for it first.  "I need to" is not a good reason to do anything, what is the underlying need for it?  What problem are you trying to fix?