Yes it is easy to do this with WebMaker.
If you have an existing script file to include, then you need to first place this file in the JavaScript folder within your project. e.g.
<install dir>\design\repository\YourWorkSpace\mvc\YourProject\webapp\js
If your scripts are likely to be used across multiple pages, then it makes sense to include them for your whole application by using the left hand panel of the Application Map tab in FormMaker.
Alternatively, if the functions you are trying to add are specific to a particular page, from the Application Map screen select the page you wish to include the JavaScript file for, then add the file from the Page's context panel on the right.
You can view and edit the content of the scripts files by clicking the file name on the Application Map tab. or under the View Scripts section of the Field Details tab.
If you wish to create a new script file, then just enter the name you would like for it on the Application Map tab. The file will be created automatically when you first save its content.
Regardless of which option is taken, you can call the custom functions on any action using the event functionality provided by FormMaker. Just choose the 'Custom Script' option and enter the call to the required function as appropriate. This can be for field/group events (eg onclick), or page level events (eg onload).
It is also possible to create scripts that will be executed as the page is loading by using FormMaker's support for custom fields. If you enter a <script> section in the custom field, then this will be processed by the browser as it is rendering that part of the page.
If you have an existing script file to include, then you need to first place this file in the JavaScript folder within your project. e.g.
<install dir>\design\repository\YourWorkSpace\mvc\YourProject\webapp\js
If your scripts are likely to be used across multiple pages, then it makes sense to include them for your whole application by using the left hand panel of the Application Map tab in FormMaker.
Alternatively, if the functions you are trying to add are specific to a particular page, from the Application Map screen select the page you wish to include the JavaScript file for, then add the file from the Page's context panel on the right.
You can view and edit the content of the scripts files by clicking the file name on the Application Map tab. or under the View Scripts section of the Field Details tab.
If you wish to create a new script file, then just enter the name you would like for it on the Application Map tab. The file will be created automatically when you first save its content.
Regardless of which option is taken, you can call the custom functions on any action using the event functionality provided by FormMaker. Just choose the 'Custom Script' option and enter the call to the required function as appropriate. This can be for field/group events (eg onclick), or page level events (eg onload).
It is also possible to create scripts that will be executed as the page is loading by using FormMaker's support for custom fields. If you enter a <script> section in the custom field, then this will be processed by the browser as it is rendering that part of the page.