Now that we have a Page and a Controller, we need to link them together to indicate the direction of information flow. You can indicate information submission by dragging the Action item from the left had palette of the application map tab. Ensure that the originating component of the action is selected on the canvas before dragging the Action because the selected component will be treated as the starting point of the action. Then simply drag and drop the action on to the target component, in this case the controller. This should create a link between the Page and the Controller. You should now be able to single click the Action Link to highlight information relevant to the Link on the right hand panel. Here, you can enter a name for this action. You can also rename the action by double-clicking it or by using the the right-click menu. This will become the name of the form action when the page is generated.
Please Note: you can create as many actions as required. You can also create page-to-page actions and also controller-to-controller actions. Please see the Tutorials and the WebMaker online FAQ for more information.
Now you need to create a field or designate a field on the page to trigger the action. You can do this by revisiting the Page Structure tab and painting a button or hyperlink. Then select the Field Details tab. The Field Details tab contains a left hand panel that lists the items on the Page. From this panel you can select the field you want to use as the submit trigger. For each field there are numerous attributes that can be set to determine look-and-feel, behaviour, etc. We will cover some of these details later and you can learn more by reading the FormMaker User Guide. For now, we are interested in the Event Options category. Here, we can create an event. By default you should find that the onclick event is selected, together with the Form Submission action. Also, since there is only one action originating from this page this action should be preselected. You can change the events, actions and the mappings to the page actions using the various select boxes. We will cover some of this in more detail later. For now we can simply leave the default settings for the new event.