Skip to content

ContentType

Gets or sets the content type that attaches a profile form and data model to the document.

Type

string

Declaration

1
 string myDocument.ContentType

Remarks

Select a published content type while the document is Draft, before supplying profile data or publishing. Title and description are standard metadata; the content type defines the additional structured profile fields.

Examples

Create a document with a content type

1
2
// 'Contract' is a published content type that defines the document profile
var doc = $Documents.New('Service Agreement', 'Contract');

See Also