## AddInput(*string*) {#addinput}

Creates a new [`InputElement`](../../inputelement/) and adds it to the end of the form.

```csharp
public InputElement AddInput(string name)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Name of input element |

### Return Value

Returns a new created [`InputElement`](../../inputelement/).

### See Also

* class [InputElement](../../inputelement/)
* class [FormEditor](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)

---

## AddInput(*string, [InputElementType](../../inputelementtype/)*) {#addinput_1}

Creates a new [`InputElement`](../../inputelement/) and adds it to the end of the form.

```csharp
public InputElement AddInput(string name, InputElementType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Name of input element |
| type | InputElementType | Type of input element |

### Return Value

Returns a new created [`InputElement`](../../inputelement/).

### See Also

* class [InputElement](../../inputelement/)
* enum [InputElementType](../../inputelementtype/)
* class [FormEditor](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
