PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. 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.

Adding a Custom Field

  1. I would like to add a custom field to the Advanced Fields section in the Add Fields menu when creating/editing a form. How can I do this? Which hooks will I need to use? Is there any documentation relating to this?

    I have searched the FAQs and Documentation, the only relevant result I found was http://www.gravityhelp.com/forums/topic/adding-a-custom-field, which was answered by an administrator, but the answer was not included in the thread.

    Posted 12 years ago on Wednesday October 19, 2011 | Permalink
  2. I would like to know this as well. Is there any other documentation on this?

    Posted 12 years ago on Friday October 28, 2011 | Permalink
  3. Would appreciate a support response on this. This was posted 3 weeks ago and still has not received any attention.

    Posted 12 years ago on Monday November 14, 2011 | Permalink
  4. I would still appreciate a support response on this.

    This topic has been active for over a month with no official response.

    Posted 12 years ago on Monday November 21, 2011 | Permalink
  5. So, I found the "gform_add_field_buttons" filter which allows one to add "Add Field" buttons to the Form Editor, but this is only one part of the solution; I need to also be able to define the field/fields that are rendered by this new Field type - how do I go about this?

    I'm not asking for a solution to be provided, just to be pointed in the right direction as to what filters I will need to implement to create my own custom "Advanced" field types.

    Posted 12 years ago on Wednesday November 23, 2011 | Permalink
  6. Your request was overlooked because whoever was moderating the forum at that time viewed it as a customization issue and not a support issue.

    They should have at least pointed you to the right hook.

    You are correct, you would use the gform_add_field_buttons hook. Buts it's fairly complex and involves a few moving pieces to account for the UI, options, validation, etc.

    But unfortunately we don't have a tutorial on this particular customization.

    I would suggest looking at the code in 1.6.1 and inspect how the Credit Card field is added and see if that helps.

    Posted 12 years ago on Wednesday November 23, 2011 | Permalink