---
schema_version: "1"
id: 8be4f2af4edd0db55feb30ba264d716d9fff8e3e405c3acb82fe15dc7beeb626
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_platformHTTPPropertyGetFormField.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformHTTPPropertyGetFormField.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a367860d09e1f3e45a8da7bd9563d921859f756a1703f2883074a469694450a8
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GetFormField

## Overview

Retrieves information from specified form fields, such as data included in POST requests

### Syntax

GetFormField(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                          |
| ------- | ------ | ------------ | ------------------------------------ |
| **1**   | string | **Required** | Name of field for the specified data |

## Example

```
<script runat=server>
     var formField = Platform.Request.GetFormField('fieldName');
</script>
```
