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.

Custom Field

  1. Hi there,

    I'm trying to create a new custom field type in my form, an image select (similar to http://jqueryui.com/demos/selectable/#display-grid but images displayed instead of text). Thinking the admin interface should be similar to what's available for something like the Checkboxes, user adds an array of image URLs that are "selectable" and can optionally add a value for this or just have it default to the index of the image.

    Unfortunately this is my first time using Gravity and I'm having difficulty knowing where to start. Started with a plugin that successfully added my new custom field button "Image Select" to the Advanced Settings, but honestly I'm having a lot of trouble figuring out next steps. It seems as though I should next add the field's settings via gform_field_standard_settings and gform_tooltips. After that, add formatting when this new element type is defined. But I'm not positive.

    I've tried searching, and I can't see any tutorials that walk someone through creating their own custom field type. If one exists, please point me to it.

    Best,
    Mike

    Posted 13 years ago on Sunday April 3, 2011 | Permalink
  2. There isn't currently a tutorial that explains how to add your own field type, it's a more advanced customization and definitely not going to be easy for someone new to Gravity Forms to pick up and run with right away.

    Are you wanting to have an image select where they select one image? Or do you have to have the lasso capabilities that that jQuery script has? I ask because what you want to do sounds like something that could be done with the Radio Button field (which accepts HTML in the option name) rather than going through the work of creating a custom field type.

    Posted 13 years ago on Monday April 4, 2011 | Permalink