Libraries.Web.Page.Form Documentation

The Form class represents HTML's (Hypertext Markup Language) form tag which allows a form to be generated that accepts user input. The form can contain one or more FieldSet, Input, TextArea, Button, Select, Option, OptionGroup, or Label elements. You can find more information about this tag at: The form attribute.

Example Code



use Libraries.Web.Page.all
class Main
action main
   //make a web page
   WebPage page
   
   //create a form
   Form form
   //create a fieldset
   FieldSet field
   //create a column
   Input input
   //setup that input
   input:SetType("text")
   //add the input to the fieldset
   field:Add(input)
   //add the fieldset to the form
   form:Add(field)
   page:AddToBody(form)
end
end

Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Web.Page.FormAttributeAccepter, Libraries.Web.Page.GlobalAttributeAccepter, Libraries.Web.Page.WebTag, Libraries.Language.Object, Libraries.Web.Page.FlowContent

Variables Table

VariablesDescription
text parentFrame
text sameFrame
text newTab
text sameWindowThis action gets the character encodings of the form that will be used to submit the form. The default value is "UNKNOWN".

Actions Documentation

Add(Libraries.Web.Page.Highlight content)

This action places a Highlight object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Highlight highlight
        page:Add(highlight)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Inserted content)

This action places an Inserted object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Inserted inserted
        page:Add(inserted)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.PerformanceGauge content)

This action places a PerformanceGauge object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        PerformanceGauge performanceGauge
        page:Add(performanceGauge)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Article content)

This action places an Article object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Article article
        page:Add(article)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.StrikeThrough content)

This action places a StrikeThrough object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        StrikeThrough strikeThrough
        page:Add(strikeThrough)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.LineBreak content)

This action places a LineBreak object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        LineBreak lineBreak
        page:Add(lineBreak)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.UnderlineText content)

This action places an UnderlineText object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        UnderlineText underlineText
        page:Add(underlineText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.DefinitionTerm content)

This action places a DefinitionTerm object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        DefinitionTerm definitionTerm
        page:Add(definitionTerm)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.OwnerAddress content)

This action places an OwnerAddress object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        OwnerAddress ownerAddress
        page:Add(ownerAddress)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Audio content)

This action places an Audio object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Audio audio
        page:Add(audio)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.UnorderedList content)

This action places an UnorderedList object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        UnorderedList unorderedList
        page:Add(unorderedList)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Heading content)

This action places a Heading object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Heading heading
        page:Add(heading)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Section content)

This action places a Section object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Section section
        page:Add(section)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.StrongText content)

This action places a StrongText object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        StrongText strongText
        page:Add(strongText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.SuperscriptText content)

This action places a SuperscriptText object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        SuperscriptText superscriptText
        page:Add(superscriptText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Footer content)

This action places a Footer object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Footer footer
        page:Add(footer)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Attribute attribute)

This action adds an attribute to this object. If an attribute with the same name as

Parameters

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

Attribute attribute
attribute:SetName("src")
attribute:SetValue("http://www.google.com")

AttributeAccepter accept
accept:Add(attribute)

Add(Libraries.Web.Page.Select content)

This action places a Select object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Select select
        page:Add(select)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.DefinitionList content)

This action places a DefinitionList object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        DefinitionList definitionList
        page:Add(definitionList)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.NavigationDivision content)

This action places a NavigationDivision object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        NavigationDivision navigationDivision
        page:Add(navigationDivision)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Label content)

This action places a Label object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Label label
        page:Add(label)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.KeyboardInput content)

This action places a KeyboardInput object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        KeyboardInput keyboardInput
        page:Add(keyboardInput)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Variable content)

This action places a Variable object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Variable variable
        page:Add(variable)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.ListOptions content)

This action places a ListOptions object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        ListOptions listOptions
        page:Add(listOptions)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Quote content)

This action places a Quote object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Quote quote
        page:Add(quote)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Header content)

This action places a Header object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Header header
        page:Add(header)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.BiDirectionalOverride content)

This action places a BiDirectionalOverride object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        BiDirectionalOverride biDirectionalOverride
        page:Add(biDirectionalOverride)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.CodeBlock content)

This action places a CodeBlock object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        CodeBlock codeBlock
        page:Add(codeBlock)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.OrderedList content)

This action places an OrderedList object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        OrderedList orderedList
        page:Add(orderedList)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.FieldSet content)

This action places a FieldSet object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        FieldSet fieldSet
        page:Add(fieldSet)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.BlockQuote content)

This action places a BlockQuote object inside of a Form object.

Parameters

Example


use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        BlockQuote blockQuote
        page:Add(blockQuote)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.ImageMap content)

This action places an ImageMap object inside of a Form object.

Parameters

Example