Skip to main content

Execute custom code step

Run JavaScript in a form action when its conditions match. Configure the trigger and test what the script changes.

What is Execute Custom Code Step

In a form action, add the Execute custom code step to run JavaScript when a button or form event triggers the action.

Yeeflow form actions menu, with Execute custom code outlined under Add a step.


When to Use Execute Custom Code Step

Use this step for custom calculations, formatting, or coordinated field changes in a form. For reusable server-side logic, see Invoke a Custom Service in a Workflow.

Use Cases

For example, add a button to renumber lines in a purchase request. When clicked, the form action reads the current sub-list and writes the row numbers. Test an empty sub-list, adding and removing rows, and saving and reopening the form.


How to Use Execute Custom Code Step

1. Execution Condition

  • Open Actions in the form designer. Choose or create an action, click Add a step, and select Execute custom code.

    Set an execution condition if the script should run only for specific inputs. Turn on Continue next step when condition is not met if later steps should still run when the script is skipped.

2. Paste Your Code Script Here

  • Build the script and paste the compiled JavaScript into the step’s code field. The Yeeflow custom code repository shows the form action’s execution example and build steps.

    Save the action and bind it to the intended button or form event. In preview, test records that meet the condition, records that do not, and an empty input before publishing the form.

Did this answer your question?