Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize
        • Ideas for decision templates
            • Create a form
            • Types of parameters
        • Edit a decision template
        • Publish a decision template
        • Copy a decision template to another tenant
        • View decision template details
        • Duplicate a decision template
        • Delete a decision template
    • View guest events
    • Copying entities between tenants
  • Using client-side JavaScript
  • Glossary
  1. Create a decision template
  1. Sitecore Personalize
  2. Developer Center

Types of parameters for decision templates

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

String template parameter

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

  • Parameter: Example
  • String template parameter:
let infoParam = `[[More information | string]]`
  • prepopulate value:
let infoParam = `[[More information | string | rush delivery ]]`
  • Determine order, unrequired:
let infoParam = `[[More information | string | rush delivery | {order: 1, required: false } ]]`
  • Character limit:
let infoParam = `[[More information | string | | {max: 32 }]]`

Text template parameter

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

  • Parameter: Example
  • Text template parameter:
let DesParam = `[[Description | text]]`
  • Determine order, unrequired:
let DesParam = `[[Description | text | {order: 1, required: false } ]]`
  • Character limit:
let DesParam = `[[Description | text | | {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:
let TicketsParam = `[[Tickets | number ]]`
  • Determine order, unrequired:
let TicketsParam = `[[Tickets | number | {order: 1, required: false } ]]`

Enumerated list template parameter

The following examples specify the template parameter syntax for including an enumerated list on the form.

  • Parameter: Example
  • Drop-down list template parameter:
let fareParam = `[[Fare type | enum(Any, Economy, Business, First) ]]`
  • Prepopulate value:
let fareParam = `[[Fare type | enum(Any, Economy, Business, First) | Any | { values: [Any, ECO, BUS, FIR] } ]]`
  • Determine order, unrequired:
let fareParam = `[[Fare type | enum(Any, Economy, Business, First) | Any | { values: [Any, ECO, BUS, FIR] } | {order: 1, required: false }]]`
If you have suggestions for improving this article, let us know!

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

Privacy policySitecore Trust CenterTerms of use
PersonalizeCloud Portal