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 retrieve the value of selected radio button

Lak Munnu
April 30, 2014

Hi

I am struggling to retrieve the value of a radio button using scriopt in the derscription field. What is the correct way to retrieve the selected radio button value.

Thanks,

Lakshmi

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
May 2, 2014

Hi Lak,

here your javascript code

jQuery(document).ready(function($) {
    var value = jQuery("#customfield_10200-val").text().trim();
    console.log(value);
})

Keep in mind that you have to use the correct Custom Field Id (10200 is the id in my instance).

Hope this helps,

Fabio

Lak Munnu
May 7, 2014

Thanks Fabio. I will try and let you know.

Lakshmi

0 votes
Eva
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.
May 2, 2014

Which version of JIRA? Also,are you runnig the script inside of the workflow (post-function)?