June 15 @ 11 am CDT

Premiere Event


June 23 @ 12 PM GMT

International Event

Facilitating Compliance, Productivity, and
Collaboration in Food & Beverage

88% Reduction of production issues in just 12 months

57% Reduction of production issues in the first 90 days

How Can We Help?
< All Topics

What is the Workflow Script Feature

A workflow script can be used to perform dynamic operations/manipulations in the workflow while filling the workflow from the mobile device. A workflow script can have one or more simple JavaScript functions written inside of it.

The functions need to be registered with the value change event of the fields in the workflow while designing the workflow from the Workflow Builder.

Various actions, such as automatically changing field labels/values, showing error/warning alerts, based on the values entered in the workflow, can be performed by writing in the workflow script functions, which are registered with the callback.

workflow script


function onTransformerCntChange(ws){

         Var number_of_transformers = getWidgetValue(ws,’number_of_transformers’);

         if(number_of_transformers > 0){

                     ws.setWidgetPrompt(“working_transformers”,”Out of the “+number_of_transformers+” transformer(s), how many are in working condition?”);







Table of Contents