Skip to content

Custom JavaScript

Overview

Run your own scripts using JavaScript (ECMAScript 5.1+) and return a data structure of results. Just ask GPT to generate a pure ES 5.1 script with no dependencies and paste it in! Pass in parameters to your function by adding them in the Parameters slot matching the order of appearance in your function definition.

Returns
Data Structure

Parameters

ParameterParameterValid BlocksRequired
Set a Dynamic Name Show the Dynamic Name slot in the tree so that it can be set statically or dynamically Boolean Block Group No
Dynamic Name The dynamic name of this item Text Block Group No
Attributes Metadata values for this block. Used in XML and multipart/form-data. Text Block Group No
Scripting Language The language of the script Text Block Group No
Script to Run The script that will be executed. Pass in parameters to your function by adding them in the `Parameters` slot matching the order of appearance in your function definition. Text Block Group Yes
Function to Run The name of the function in the script to run. Can be blank if there is no function wrapper in your script (functions are required to pass in parameters). Text Block Group No
Parameters A list of parameters to be passed into the function, in order of appearance (match the order in your script function). Any Data Type Block Group No