Form Options

The following form options are available for the custom content form item object.

Table 8-1 Form Options

Property Description
supporstSetsName

Whether or not the form supports setting name. Typically this value is false when adding or editing digital asset attributes.

When this value is false, calling
 item.setName()
will throw an error.
supportsSetDescription

Whether or not the form supports setting description. Typically this value is false when adding or editing digital asset attributes.

When this value is false, calling
item.setDescription()
will throw an error.
supportsSetLanguage Whether or not the form supports setting language. Typically this value is false when adding or editing digital asset attributes
supportsSetTranslatable

Whether or not the form supports setting translatable. Typically this value is false when adding or editing digital asset attributes, and adding or editing content items in a business repository. When this value is false, calling

item.setTranslatable()
will throw an error.
supportsSetSlug

Whether or not the form supports setting slug. Typically this value is false in following scenarios:

  • While adding multiple digital assets together to the repository
  • While adding/editing digital assets and content items in the business repository
  • While converting digital assets of seeded type to a custom type
When this value is false, calling
item.setSlug()
will throw an error.
supportsSetMetaData

Whether or not the form supports setting metadata. Typically this value is false while adding digital assets to the repository.

When this value is false, calling following methods of item will throw an error.

  • addCollections()
  • removeCollections()
  • addChannels()
  • removeChannels()
  • addTags()
  • removeTags()
  • addCategories()
  • removeCategories()
supportsRequiredValidation Whether or not the form supports required validation. Typically this value is false while adding digital assets to the repository.
placement Whether the form is displayed in the
sidebar
or
drawer
.
mixedValueFields An array of field names that has mixed values while editing attributes across multiple selected assets when adding assets to repository.
supportsSetNativeFile Whether or not the form supports adding a native file from the form for custom digital asset translations. Typically this value is true for new translations of custom digital assets whose Asset Type's file field is not inherit from master. In all other cases it is false.