Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize
        • Add a programmable decision
        • Create a programmable with the Code Assistant
        • Add a decision template
        • Examples of programmable decisions
        • Use custom fields
        • Including dates
        • Copy programmable decisions
        • Including print statements
        • Troubleshooting
    • Managing data systems
  • Using client-side JavaScript
  • Glossary
  1. Managing programmable decisions
  1. Sitecore Personalize
  2. Decisioning

Use custom fields in programmable decisions

There are some situations where you might want to leverage a custom field in your programmable decision logic. For example, you might want to retrieve the logged in state of the site visitor. To do this, create a custom field called loggedInState.

Use the following syntax in the JavaScript of the programmable decision: request.params.customField

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