Use drawCustomButton to add custom buttons to data forms. Buttons can link to any data entry page or launch custom JavaScript code included in ValidateData.js. For example, you can add buttons to validate data forms or run reports.
SampleValidateData.js includes an example that adds a button labeled Validate to a data form. When a user clicks the button, the JavaScript code compares the values entered for the current year to last year’s values. If the current year’s values are more than 10% larger than the previous year's values, a message is displayed.