Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize
        • Ideas for web templates
        • Web template design best practices
            • Create a form
            • Types of parameters
        • Edit a web template
        • Publish a web template
        • Copy a web template to another tenant
        • View web template details
        • Duplicate a web template
        • Delete a web template
    • View guest events
    • Copying entities between tenants
  • Using client-side JavaScript
  • Glossary
  1. Create a web template
  1. Sitecore Personalize
  2. Developer Center
  3. Web templates
  4. Create a web template
  5. 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

[[Email | string ]]

Prepopulate value

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

Determine order, unrequired

[[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

[[Delivery Instruction | string ]]

Prepopulate value

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

Determine order, unrequired

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

Group template fields together

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

Character limit

[[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

[[Description | text ]]

Determine order, unrequired

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

Character limit

[[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

`[[Requested Invoice Copies | number ]]

Unrequired field

[[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

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

Prepopulate value

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

Alternate values, unrequired

[[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

[[Button Colour | colour ]]
If you have suggestions for improving this article, let us know!

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use