---
schema_version: "1"
id: 427e2c1148447f435312dfeed3f8bf78df1c4802199050270e3a805f495a07c9
title: GetFormField
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_utilitiesGetFormField.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_utilitiesGetFormField.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 631740daab8f5a0bd9753251acd31f1aa14075663dfd32dae02d79cce3c1e974
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GetFormField

## Overview

Pulls back form field information POSTed to the page based on a specified key

### Syntax

GetFormField(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                      |
| ------- | ------ | ------------ | ------------------------------------------------ |
| **1**   | string | **Required** | Key value used to identify applicable form field |

## Members

You can retrieve member values using these strings:

- ApplicationID
- PackageID
- ApplicationBaseURL
- URL
- PagePath
- Method

## Example

This sample code requests a form field based on the supplied key:

```
Request.GetFormField("bar");
```

This sample code provides examples of how to call a member:

```
var requestURL = Request.URL();
var requestMethod = Request.Method();
```

**note:** You must escape all HTML form field information.
