IMPORTANT NOTICE: The Rocketgenius/Gravity Forms offices will be closed Monday, May 27th in observance of the Memorial Day holiday. Please be patient as our response times will be longer than usual during this time. Thank you.

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 1 year ago on Wednesday January 18, 2012 | Permalink
  2. richardvav
    Member

    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 1 year 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 1 year ago on Wednesday January 18, 2012 | Permalink
  4. richardvav
    Member

    @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 1 year ago on Wednesday January 18, 2012 | Permalink

Leave A Reply

You must log in to post.