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
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 ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.