Do not script something for which OnBase already has built in functionality.
Completely separate the HTML and JavaScript. If you need to create an event handler, do not use the ‘onclick' event in the HTML, but attach the event handler in the code.
Store style sheets and any necessary scripting in separate files that are referenced from within the E-Form itself. This cuts down on the size of the form and also allows the code to be re-used somewhere else in a solution.
When a form is coded to use an action ("action="), the action is removed from the E-Form when it is displayed in OnBase by design. Custom JavaScript or VBScript will need to be used to accomplish what the actions would have.