User Guide & Reference Manual

Custom Fields

Custom fields are one of the core factors in Hero's versatility. They allow you to extend the data collected and published with Hero in many areas of the application without any programming knowledge or web development experience. (And, developers, they allow you to easily build forms with the Form Builder library.)

Essentially, custom fields are HTML form elements such as dropdowns, textboxes, or file uploads that are added to forms and datasets. By default, the following custom fieldtypes exist:

Developers, want to add more fieldtypes to the system? You can easily add cross-application fieldtypes by defining a new *fieldtype class that extends the Fieldtype library.

Each field can be validated upon submission based on configurations you specify when adding/editing the custom field. For example, you could verify that the text input is alphanumeric, or a valid email address, and you could verify that the file uploaded is in PDF format. There are numerous validation options for each fieldtype.

You can also define default values, help text, and more settings with each custom field.

This guide will introduce you to custom fields and how they apply to the different modules of Hero.

Member Custom Fields

These custom fields are modified at Configuration > Custom Fields > Member Data.

Member custom fields are fields that are part of a member's profile at your website. The following options are available for each field:

Product Custom Fields

These custom fields are modified at Configuration > Custom Fields > Product Data.

Product custom fields are attached to the products you create in the control panel.

For example, if you like to organize your health food products by the astrological signs that would most benefit by them, you could create a select dropdown field with each astrological sign as an option. Then, when adding/editing products, you can specify the astrological sign linked with each product. This data can then be displayed to your visitors on the product page or in a store collection listing. See how to include this data in your store pages.

Store Collection Custom Fields

These custom fields are modified at Configuration > Custom Fields > Store Collection Data.

Just like product custom fields, you can specify custom fields linked with store collections (i.e., categories) that can then be displayed in the frontend.

Form Custom Fields

Hero includes an easy-to-use form builder in the control panel at Publish > Forms. Each form is comprised of a series of custom fields built with the fieldtypes listed in this guide (and any custom fieldtypes added by developers). Learn more about how forms are built in the control panel.

Content Custom Fields

Content types are also largely comprised of a series of custom fields defined with these fieldtypes. This gives you complete power over the content you are managing and publishing with Hero. Learn more about defining content types and publishing content.