Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WWWForm.AddField

AddField(fieldName: string, value: string, e: Encoding = System.Text.Encoding.UTF8): void;
void AddField(string fieldName, string value, Encoding e = System.Text.Encoding.UTF8);
def AddField(fieldName as string, value as string, e as Encoding = System.Text.Encoding.UTF8) as void

Description

Add a simple field to the form.

Adds field fieldName with a given string value.

AddField(fieldName: string, i: int): void;
void AddField(string fieldName, int i);
def AddField(fieldName as string, i as int) as void

Description

Adds a simple field to the form.

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