Adding Form Controls
The first step in creating an interactive form is to add form controls to a report or parameter sheet. (These form elements are represented as basic HTML form elements when the report is rendered in the User Portal.) Form control elements all share two properties:
• 'Form Name'
• 'Field Name'
Controls with the same form name are grouped into a single form. To add form elements, follow the steps below:
1. Open the Style Studio Toolbox panel.
2. Drag a form element from the Toolbox panel into the report.
3. Right-click the new report element and select 'Properties' from the context menu.
4. Enter a 'Form Name' for the element. Use the same form name for all elements belonging to the same form.
The specified 'Field Name' is assigned as the name of the HTML control in the Portal, and is used by client-side and server-side script to access the control's value.
5. Enter a unique 'Field Name'.

For Radio Buttons, use the same Field Name for buttons in the same Radio Button group. The group is then treated as a single field, with the value of the group being the value of the selected Radio Button.
6. (Optional) Click the HTML tab to open the client-side JavaScript editor.
7. In the onSubmit and onClick tabs, enter JavaScript commands to be executed on the client side when an 'onSubmit' or 'onClick' event occurs in the browser. See Client-Side JavaScript below.

8. Repeat the above steps to add the desired controls, including at least one button or image button to use for submitting the form.
See Also
Parameter Sheets, in Report Design, for example of form usage.
Form Design, in Report Design, for information about the various form controls.
| << 6.3.1 Creating a Form | © 1996-2013 InetSoft Technology Corporation (v11.4) | Client-Side JavaScript >> |