Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown and variable number of text input fields?

Dylan McCurry December 8, 2011

Hello all,

I have the need for a user to input a variable amount of text fields all relating to the same topic. For instance, on some issues the user may need to input two (separate) values for a logical text field. On another issue, the user may need to input 5 values for a text field. Is there any way to achieve this? The user does not want to have a single text input field where values are separated by semi-colon or some other delimiter.

My less than optimal solution: I have thought that I may be able to use a text area, and through Javascript remove the text area and place a text field on the screen. When the text field recieves text, the javascript will dynamically add another empty text field below it, and so on and so forth. After the user has input all of their required information, the Javascript would gather the values from every text field and concatenate them together into the text area. I would like to avoid having to create this because it seems delicate, is there any plugin that can achieve this same effect?

Thanks for your time.

dm

1 answer

1 accepted

0 votes
Answer accepted
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.
December 8, 2011

Actually, you solution is a good one. The only other option I can think of is to create a new custom field type which essentially does something similar using Javascript!

Maybe some else will have better ideas ;)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events