How to use Custom JavaScript within a Workflow Subaction

Created by Joshua Miller, Modified on Sun, 23 Mar at 8:06 PM by Joshua Miller

Custom JavaScript is able to be applied to Subactions within the Workflow. This is useful for applying custom functionality to a value based on the action performed.

Instructions

  1. Select the Module link in the top left banner, from the Module list select the module for which the field is being Mobile Link enabled.
  2. Select the Wofkflows tab within the Module settings, then select the Actions tab.
  3. Select the action for which the Custom JavaScript Subaction is to be added, then the Subactions tab.
  4. After defining the condition for the Subaction, select the field for assignment from the left.
  5. On the right side of the assignment statement to execute Custom JavaScript the text but me wrapped by '{' an opening and closing brace '}'
    (Note: Variable references can be used within these braces in a similar fashion to other Custom JavaScript (Example - "%(customString1)%")) 


If the goal were to increment a value already in a field each time an action was performed the code below would achieve this.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article