Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pop Up on field entry/selection of form Edited

I've searched around a bit. I have ScriptRunner, was wondering if it was possible to create a pop-up with fields for additional entry based on the selection of another filed (i.e. checkbox or select list). 

For example I have a checkbox field and when option 1 is selected I want a popup screen displayed with 3 additional fields that need to be populated.

Only thing I could come up with would be to create a tab for each selection of the checkbox with the appropriate fields, hide the tabs by default and then when the selection is made, unhide the tab, and switch to the tab. After that I can't think of way to get back to the original tab, other than another behaviour on the last field maybe.

Was thinking a pop-up with a done button would work better.

1 answer

1 accepted

0 votes
Answer accepted

While scriptrunner script fragment would let you create web items that can display a dialog box (with the full source of the dialog having to be designed and fed using REST API), there is no good way to integrate that with a field change. You would have to write your own javascript to react to field change, and display the popup. But then you would have to somehow set the value of the hidden fields so that they are included in the form submit.

 

Tabs or otherwise hidden fields that are displayed using behaviour script is the way to go here.. I would consider showing the additional fields/tab when you make a selection, but then leave them visible. There is no point in hiding them again after. 

Thanks Peter, I figured as much, but thought I would ask.

I wouldn't hide them again, but would want the user taken back to the original tab after completing the information on the field specific tab.

Looking at using this for a new hire form, where there would be a checkbox field with 25+ check boxes, some of the selections would require additional information, which would be on the additional tabs and only displayed if the appropriate checkbox is selected. 

Then what you can do is have either a single or a few additional tabs and make sure there is at least one required field on that additional tab.

So as you check each of the applicable checkboxes out of the 25, the list of fields on the additional tab(s) is adjusted.

Then by having one or more required fields on those tabs, you can make sure that the user visits those tabs and make adequate selections.

You just separate in the user flow the selection of options and the filling out of details.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

321 views 9 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you