icon Forms Renderer
Created by Orckestra

A Guide to Creating Data Types

Test Your Knowledge

TASK 1

  1. Create a global datatype.
  2. Specify its title and type name as “RegisteredUsers”.
  3. Enter “Test” for the type namespace.

TASK 2

  1. Add 3 string fields to the RegisteredUsers datatype and name them “FirstName”, “LastName” and “EmailAddress” accordingly.
  2. Add another string field and name it “About myself”.
  3. Set its Widget type to “TextArea”.
  4. Add a date field to the datatype and name it “DateOfBirth”.
  5. Add a data reference field of the C1 Image File type and name it “Avatar”.
  6. Change its widget to Composite.Widgest.DataReference.DataTypesIImageFile.Selector

TASK 3

  1. Add a string field and name it “Country”.
  2. Set its Widget type to “Selector”.
  3. Specify the Country options for the selector: “Denmark”, “USA”, “UK”, “The Netherlands” and “Germany”.
  4. Save the datatype.
  5. Make the datatype available in the Content perspective.

TASK 4

  1. Create a web page and name it “Registration”.
  2. Add an input form to the web page (Composite.Forms.Renderer) and associate it with the RegisteredUsers datatype.
  3. Set its response text to “Thank you for registering with us.
  4. Make the form use the CAPTCHA.
  5. Save and publish the page.

TASK 5

  1. Add a data item to the RegisteredUsers global datatype from the Content perspective.
  2. Open the Registration page in a web browser.
  3. Fill out and submit the form.
 
Back to top