# AddField

> Add a simple field to the form.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.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)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### 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)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Encoding]\(https\://learn.microsoft.com/dotnet/api/system.text.encoding)):&#x20;

### 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)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Remarks

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