Form
Use the Form part to contain a set of elements that provide an interface for user interaction. This part generates the HTML form element.
To add a Form part, select the Web Form Parts Category (
), then the Form part (
). You can also add the part using the Add Part dialog and specifying the class name,
AbtHtmlForm.
Form Properties
The Form part has the following properties:
action
Use the action property to specify the URL of the program or script that accepts and processes the contents of the form. This property is equivalent to the action attribute of the HTML form element.
eventHandlers
Use the eventHandlers property to define any event handlers for this part. Event handlers provide the ability to detect and react to events that occur while an HtmlPage is loaded in a Web browser. An example of an event handler is mouse over, where you can specify when the mouse moves over an HTML element, something happens, usually a JavaScript is executed..
extraAttributes
Use the extraAttributes property to specify any additional HTML attributes that you want included in the HTML tagging generated by the part. You can use this property to include HTML attributes that are not directly supported by VA Smalltalk.
method
Use the method property to specify how you want the form to be submitted:
Get
Specifies that you do not want to make any changes to the existing page or database. Essentially, you use Get to retrieve information to present to the user.
Post
Specifies that you want to make changes to the existing page or database.
This property is equivalent to the method attribute of the HTML form element.
partName
In the Part name field, type the name you want to use to describe the part. For non-visual parts, this text appears under the icon for the part on the free-form surface.
The name of the part can consist of alphanumeric characters, and must be unique from all other parts on the layout surface.
This field is optional. If you do not specify a part name, VA Smalltalk generates a unique name based on the class name of the part.
Last modified date: 06/24/2018