Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Introduction to Sitecore Personalize
Managing accounts and system settings
Identifying guests
Introduction to experiments
Introduction to experiences
Decisioning
View dashboards
Developer Center
Connecting to an external system
Using client-side JavaScript
Using server-side JavaScript
AI in Personalize
Glossary
  • Sitecore Personalize
  • Developer Center
  • Web templates
  • Create a web template
  • Types of parameters for web templates

Types of parameters for web templates

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

Email template parameter

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

Parameter

Example

Email template parameter

RequestResponse
[[Email | string ]]

Prepopulate value

RequestResponse
[[Email | string | [email protected] ]]

Determine order, unrequired

RequestResponse
[[Email | string | [email protected] | {order: 1, required: false } ]]

String template parameter

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

RequestResponse
[[Delivery Instruction | string ]]

Prepopulate value

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

Determine order, unrequired

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

Group template fields together

RequestResponse
[[Title Text | string | For this bar, we recommend less than 50 characters|  {max: 50 , group: Title, groupOrder: 2, order: 1 }]]

Character limit

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

Text template parameter

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

RequestResponse
[[Description | text ]]

Determine order, unrequired

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

Character limit

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

Number template parameter

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

Parameter

Example

Number template parameter

RequestResponse
`[[Requested Invoice Copies | number ]]

Unrequired field

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

Enumerated list template parameter

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

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

Prepopulate value

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

Alternate values, unrequired

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

Colour template parameter

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

Parameter

Example

Colour drop-down list template parameter

RequestResponse
[[Button Colour | colour ]]

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore