Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,732
Community Members
 
Community Events
168
Community Groups

Auto-populating Radio button via URL parameters

I am trying to make use of the new Jira portal form auto-population mechanics. (See link for more info.)

The following format works in these cases:

  • Summary Field | <jira-portal-form>?summary=MyText
  • Select Drop-Down | <jira-portal-form>?customfield_idxxxx=xxxvalueid

But when I try to do the same for a radio-button, nothing happens.

  • Radio | <jira-portal-form>?customfield_idxxxx=xxxvalueid

Is the guidance correct?  Are additional parameters required, such as "xxxoptionid=selected"?

Are there Jira ServiceDesk settings or configurations that will prevent pre-populating a radio button? 


EXAMPLE: I would expect the following to auto-populate the selection of the radio button based upon the example below:
https://<domain>/servicedesk/customer/portal/XX/create/XX?customfield_246000=23300

<fieldset class="field-group group" role="radiogroup"

aria-labelledby="customfield_24600-label">

<legend id="customfield_24600-label">RadioField</legend>

<div class="radio" resolved=""><input class="radio" type="radio"

        name="customfield_24600" id="customfield_246000" value="23300"

        resolved=""><span class="aui-form-glyph"></span><label

        for="customfield_246000">Option#1</label></div>

<div class="radio" resolved=""><input class="radio" type="radio"

        name="customfield_24600" id="customfield_246001" value="23301"

        resolved=""><span class="aui-form-glyph"></span><label

        for="customfield_246001">Option#2</label></div>

<div class="radio" resolved=""><input class="radio" type="radio"

        name="customfield_24600" id="customfield_246002" value="23400"

        checked="" resolved=""><span

        class="aui-form-glyph"></span><label

        for="customfield_246002">Not Specified</label></div>

</fieldset>


Any thoughts or insights?

 

1 answer

1 accepted

1 vote
Answer accepted

RESOLVED:
https://<domain>/servicedesk/customer/portal/XX/create/XX?customfield_246000=23300

 

RADIO BUTTON ID = customfield_24600

FIRST OPTION = customfield_246000  (customfield_24600+0)

SECOND OPTION = customfield_246001 (customfield_24600+1)

***

Really easy to miss that nuance between "customfield_24600" and "customfield_246000".

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events