Skip to main 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
Use Dynamic NameShow the Dynamic Name slot in the tree so that it can be set dynamicallyBoolean Block GroupNo
Dynamic NameThe dynamic name of this itemText Block GroupNo
AttributesMetadata values for this block. Used in XML and multipart/form-data.Text Block GroupNo
Scripting LanguageThe language of the scriptText Block GroupNo
Script to RunThe 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 GroupYes
Function to RunThe 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 GroupNo
ParametersA list of parameters to be passed into the function, in order of appearance (match the order in your script function).Any Data Type Block GroupNo