Please Note: We are no longer using forums to facilitate standard support. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Letting users duplicate a field

  1. nibor
    Member

    Is it possible to allow users to duplicate a field?

    We want users to be able to type in a series of items, we don't know how many there will be - it could be 1 or 50. We don't really want to have to put 50 textareas in to start with, so would like the user to type into one textbox and then click an "Add Another" link to create a second textbox and so on.

    Can we do this with Gravity Forms?

    Thanks

    Posted 2 years ago on Wednesday January 18, 2012 | Permalink
  2. Richard Vav
    Administrator

    In Gravity Forms v1.6 they added the 'list field' which basically adds a button next your field which the user can click to add a new row and they can keep adding rows up to the limit you set in the admin. It also allows you to have multiple columns per row, at the moment it only uses basic text boxes but if you want one of those columns to have a drop down that can be achieved by adding some code to your theme's functions file. So yes gravity forms will do what you have described and more.

    Posted 2 years ago on Wednesday January 18, 2012 | Permalink
  3. Hey Richardvav, can you give an example of how you would go about using dropdowns instead of textfields?

    Posted 2 years ago on Wednesday January 18, 2012 | Permalink
  4. Richard Vav
    Administrator

    @timsainb check out the following page from the documentation which gives an example of the filter you should add to your theme's functions.php

    http://www.gravityhelp.com/documentation/page/Gform_column_input

    Posted 2 years ago on Wednesday January 18, 2012 | Permalink

 

Support Tickets

 Open A New Support Ticket

 Open A New Priority Support Ticket *

* Developer license holders only