Javascript
- The cam-script Directive
Add custom JavaScript to an embedded form with a script tag and the cam-script directive.
- Available API
The objects available inside a form script, such as camForm and its variable manager, $scope and inject().
- Participating in the Form Lifecycle
Hook into the form lifecycle from a form script: fetch and submit additional variables and implement custom fields.
- Debugging Scripts
If a form script is loaded using an XHR from a web server, it is executed using eval(). To debug it, you need to use browser-specific debugger extensions.
- Generating a Business Key
Example of generating a business key with JavaScript when a process instance is started from a form.
- Examples
Examples of custom JavaScript in embedded forms: show the user name, load additional resources, exclude a variable from submit and upload large files.
