Skip to main content

Types of parameters for web templates

Abstract

Overview of the types of parameters available when creating a form for a web template (Sitecore Personalize).

The following sections detail the types of parameters available when creating a form for a web template.

The following examples specify the template parameter syntax for including an email field on the form.

Parameter

Example

Email template parameter

[[Email | string ]]

Prepopulate value

[[Email | string | emailaddress@domain.com ]]

Determine order, unrequired

[[Email | string | emailaddress@domain.com | {order: 1, required: false } ]]

The following examples specify the template parameter syntax for including a string field on the form. Depending on the web template you are configuring and how much space is available for text, you can use the character limit parameter to set the maximum number of characters that the marketer can enter when completing the form.

Parameter

Example

String template parameter

[[Delivery Instruction | string ]]

Prepopulate value

[[Delivery Instruction | string | Leave at door ]]

Determine order, unrequired

[[Delivery Instruction | string | Leave with neighbour | {order: 1, required: false } ]]

Character limit

[[Delivery Instruction | string | | {max: 32 }]]

The following examples specify the template parameter syntax for including a text field on the form. Depending on the web template you are configuring and how much space is available for text, you can use the character limit parameter to set the maximum number of characters that the marketer can enter when completing the form.

Parameter

Example

Text template parameter

[[Description | text ]]

Determine order, unrequired

[[Description | text | | {order: 1, required: false} ]]

Character limit

[[Description | text | string | | {max: 32 }]]

The following examples specify the template parameter syntax for including a number field on the form.

Parameter

Example

Number template parameter

`[[Requested Invoice Copies | number ]]

Unrequired field

[[Requested Invoice Copies | number | | {required: false} ]]

The following examples specify the template parameter syntax for a drop-down list (enumerated list) on the form.

Parameter

Example

Drop-down list template parameter

[[Shipping | enum(Overnight, Priority, Standard) ]]

Prepopulate value

[[Shipping | enum(Overnight, Priority, Standard) | Standard ]]

Determine order, unrequired

[[Shipping | enum(Overnight, Priority, Standard) | Standard | {required: false, values: [O, P, S]} ]]

The following examples specify the template parameter syntax for the Colour drop-down list.

Parameter

Example

Colour drop-down list template parameter

[[Button Colour | colour ]]