Schema fields

 

This document tries to explain the Schema field types and the different properties that are unique to some of these field types.

Content schema is used to explain the fields in this document.

URL

This field will take the URL as input.

{ "type": "String", "fieldType": "url", "ref": "", "options": [], "multiple": false, "validation": [ { "required": false } ], "isDefault": false, "label": "Place your URL", "key": "testurl" }

The field label will turn red if a URL is not entered in this field.

Text

This field is used for entering the text. The field is rendered in a single line.

{ "type": "String", "fieldType": "text", "ref": "", "options": [], "multiple": false, "validation": [ { "required": false //"maxlength": 250 } ], "isDefault": false, "label": "Place your text", "key": "testtext" }

[Optional] You can set the maxlength property under the validation array. This will make the field label turn red if you enter more than the maxlength number of characters.

Textarea

This field will display a text box. You also see the number of characters this textbox can take on the bottom right corner. You cannot add more than the maxlength number of characters.

{ "type": "String", "fieldType": "textarea", "ref": "", "options": [], "multiple": false, "validation": [ { "required": true, "maxlength": 250 } ], "isDefault": false, "label": "Place your text in the area", "key": "testtextarea" }

The maxlength is a mandatory property for textarea fieldType.

Rich Text

Use this field type to enable the formatting of the text entered.

Media Embed

Use this option to Embed media content or Insights Dashboards and so on.

The Embed field in Edit mode.

The Embed field in View mode.

File

Use this field type to allow uploading files.

File upload in Edit mode.

File upload in view mode.

Click on the Browse button.

Choose a file/image or click on Upload to upload your own file.

After selecting the file/image of your choice. Click on the OK button.

The options array has the multiple, removeAfterUpload, and mimeTypes properties.

Property

Description

Property

Description

"multiple": "true"

Allows you to upload multiple files and previews it. Both multiple properties should be true for this.

"removeAfterUpload": true

Removes the local copies of the uploaded files.

"mimeTypes": [
"image",
"application"
]

The mime type defines the type of file that is getting uploaded.

The mime types can be audio, video, text, image, application, and font.

Date

Use this field type for the Date picker widget.

DateTime

Use this field type for the Date and Time picket widget.

Checkbox

Use this field type to display checkboxes.

You can add the checkboxes to the options array.

Each choice will have a Key and Value.

  • The key is the unique representation of the choice and

  • the Value is the Display text of the choice.

Dropdown

This field type will display options in a dropdown.

You can add the choices to the options array.

Each choice will have a Key and Value.

  • The key is the unique representation of the choice and

  • the Value is the Display text of the choice.

If you choose “multiple”: true, then you can select multiple items from the dropdown.

SSML

The SSML field type displays the voice tab of the multi-modal content editor. You can use this field type to change the voice output. Refer What is the Multimodal Content Editor? | Voice Tab

Multi-Screen

The multi-screen renders the multimodal content editor. Refer What is the Multimodal Content Editor?

Persona List

This field type will let you choose the persona from the list of all the personas available in the environment.

Dynamic Data Reference

You can refer to the documents from another schema to this schema.

For example, if you want to refer to the documents from the facilitydata content schema to this schema, you can use this field type.

The documents available in facilitydata schema will be listed in the dropdown.

If you choose “multiple”: true, then you can select multiple items from the dropdown.

Json

This field type will display a code block.

Tags

This field type is used for tags. Using tags, you can categorize all the documents in this schema. Add your text and press enter in this field to add a tag.

Flow data reference

You can select the flow studio flows from the dropdown using this field type.

 

If you choose “multiple”: true, then you can select multiple items from the dropdown.

Related Articles