February 9th, 2012
There are times as a Joomla developer when it would be very useful to have a form field in Joomla that is capable of self-replication. For example, you want your user to be able to input some links, but you don’t know in advance how many there will be, you want your user to be able to choose to add as many as they want without imposing any arbitrary limit. What you want is a self-replication form field that can return its values as an array.
The variable field form field can be used to generate self-replicating fields of most of the Joomla standard field types, including text, textarea, list and other list based types, such as category or usergroup. The user will see the standard input field, plus buttons which allow the user to add or delete input fields, also to re-order them, also to re-order them up and down.
Please note that this is a tool for Joomla developers, it is not an extension that you can upload and install in Joomla. However the download package does include an example content plugin that demonstrates how to use the field.