Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

JS Subactions allow the execution of JS to perform actions within the form/entity on new submission such as Submit when importing or the action is performed.

Instructions

  1. Select Module in the top left banner then select the appropriate module name link.

  2. Select the appropriate module for which the Subaction JavaScript is needed.

  3. Select the Workflows tab, followed by the relevant workflow.

  4. Select the Actions tab, followed by the Action to be customized.

  5. Select the Subactions tab, on the right side of the assignment expression, paste the code below to assign a field value to the total number of days since submitted.

  6. Select Execute Javascript from the subaction type dropdown to the right.

  7. Select the edit Pencil Icon to access the JS editor.

  8. Select OK to store the JS, OK again to save the Action, then Save to save the workflow.

  9. Validate the functionality by performing the action. If you use the example script from this article, you will see subtasks added and the numeric fields have the respective values.

How to:
Add subtask and line items:

  • No labels