---
title: "Use custom fields in programmable decisions"
slug: "use-custom-fields-in-programmable-decisions"
abstract: "How to use a custom field in JavaScript for a programmable decision (Sitecore Personalize)."
---
# 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`