CRED forms can include Custom and User fields that are defined by other plugins and the theme.

To control Custom Fields, go to Toolset -> Post Forms and click on Manage non-Toolset Post Fields, in the section just below the list of your forms.

In the following example, we will describe the procedure for Custom Fields. In case you want to control User Fields, you can navigate to Toolset -> User Forms, click on Manage non-Toolset User Fields and follow the same process.

Custom fields settings in CRED.
Custom Fields settings in CRED.

Select the post type for which you want to display custom fields.

For a post type to be selectable here, it needs to be configured as public, publicly queryable and visible in the GUI.

You can choose to display hidden custom fields (which are normally not showing in the WordPress admin). Then, click Apply.

CRED will display all custom fields that are being used by the post type.

Click Add to include them in CRED forms.

CRED - Custom Fields Control Dialog

You will select the kind of input to use for each of the fields and enter the appropriate arguments.

Fields have these options:

  • Required – if not entered, the form cannot be submitted
  • Validate format – CRED will ensure that field input is compatible with the field type (only applicable to some field types)
  • Include this field in Scaffold – the field will automatically appear when you use the Auto-Generate Form feature.

Once you’ve added custom fields to CRED, you will be able to insert them into forms. CRED will save the field values to the database when submitting the forms and load them from the database when editing content.

You can remove the fields from CRED management by using the Remove link.