# AddField

> Add a simple field to the form.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

## AddField(string, string)

Add a simple field to the form.

```csharp
public void AddField(string fieldName, string value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the field to add.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string value to assign to the field.

### Remarks

Adds field `fieldName` with a given string value.

## AddField(string, string, Encoding)

Add a simple field to the form.

```csharp
public void AddField(string fieldName, string value, Encoding e)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the field to add.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string value to assign to the field.**** (\[Encoding]\(https\://learn.microsoft.com/dotnet/api/system.text.encoding)): The encoding used to convert `value` to bytes.

### Remarks

Adds field `fieldName` with a given string value.

## AddField(string, int)

Adds a simple field to the form.

```csharp
public void AddField(string fieldName, int i)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the field to add.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The integer value to assign to the field.

### Remarks

Adds field `fieldName` with a given integer value. A conveinience for calling AddField(fieldName, i.ToString).
