User name from a cam-script
This example demonstrates how to retrieve the user name and display it in an embedded form:Load Additional Resources
This example includes an image, which is located in the contextPath of the form (i.e., in the same directory). The URL of the image is retrieved via the task form key method of the REST API:Exclude a variable from submit
When a variable is loaded, it is also sent back to the server when the form is submitted. If you have a variable that you don’t want to be submitted when the form is completed, you can use thedestroyVariable function of the variable manager:
Upload Large Files
This example contains a file input element and the script to send it to the server. In contrast to the file input element of the Forms SDK, this example can handle large files, but it also has some drawbacks:- Can not be used in the start form of a process (no process instance id exists at this time)
- Does not take part in the form lifecycle (files could be saved even if the form is not submitted)
- Can only save one file at a time
uploadedFile