Adding a button to a form
Answer¶
You can add a button by using "Script".
Overview¶
To add a button after any column or to the command button area, use "Script".
Method of Operation¶
- Open the target table.
- Click "Manage" in the navigation menu.
- Click "Manage Table".
- Click the "Editor" tab.
- Enable "Category A" in "Editor Settings".
- Click the "Script" tab.
- Click the "Create New" button.
- Enter any title in "Title" and enter the script below in "Script".
- Set "Output to" by referring to the following.
- Click the "Change" button.
- Click the "Update" button in the command button area.
- Open any record or create a new record.
Code Samples¶
| Output to: New or Edit (or both) | |
|---|---|
The button is added with the standard design of the HTML button tag.
| Output to: New or Edit (or both) | |
|---|---|
- Set the button icon in the
'ui-icon-○○'format. For the strings that can be specified, see the following page.
Icons | jQuery UI API Documentation
The button is added with a design that conforms to Pleasanter.
When you want to change Output to
To set "Output to" to "Grid", change the event firing script to $p.events.on_grid_load. To set "Calendar" or "Crosstab", change the event firing script to that of the screen you set in the same way.