is there any opportunity to import an external JavaScript file in a tasklist embedded form?
In the examples we have an embedded javascript file which looks like this:
<script cam-script type="text/form-script">
//your javascript code here
</script>
I want to made some change in the embedded form, e.g. add HTML Elements, …
My javascript is a part of one task and not for all tasks on my server (I think that was described in the link that you sent).
For example:
You have this HTML Code in your process (for your start task):
<form role="form" class="form-horizontal">
<script cam-script type="text/form-script">
camForm.on('form-loaded', function () {
// tell the form SDK to fetch the json variable name 'customer'
camFom.variableManager.fetchVariable('customer');
});
</script>
<div class="control-group">
<label class="control-label" for="firstName">First Name</label>
<div class="controls">
<input id="firstName" class="form-control"
type="text" ng-model="customer.firstName" required />
</div>
</div>
</form>
I want to write the part in the script-tag in an external javascript file and want to import it in the form part. So that no javascript part will be in the HTML file.
E.g.: