FormField

FormField class

Describe one field of form.

The FormField type exposes the following members:

Constructors

NameDescription
FormField()Create instance of form field.
FormField(label)Initializes a new instance of the FormField class
FormField(label, input_type)Initializes a new instance of the FormField class

Properties

NameDescription
labelGet or set label of field.
input_typeGet or set input type of field.
nameGet or set name of field.
idGet or set Id of field.
placeholderGet or set placeholder of field.
valueGet or set value of field.
is_requiredGet or set value that define field as required.

Methods

NameDescription
to_amp_html()
to_html()

See Also