Toggle menu

Blockly Blocks

The script editors in the form designer have a "visual" mode, based on Google's Blockly library. There are over one hundred different blocks representing most of the standard JavaScript syntax. You can read more about Blocky and the basic blocks on the Blockly Website (opens new window).

These articles describe the custom blocks we've created to work with iCM's form helper library. Given the number of them, only the more complex ones are documented.

Some functions of the form helper library are only available when working server-side, others only browser-side. The blocks available to you are automatically filtered based upon where you are working. You can see where your script will be executed from the icons at the top of the editor.

Server-side Scripts
  - The script will only be executed server-side (as the form or page loads, and on submit)

Client-side Scripts
  - The script will only be executed on the user's browser (handler functions for example)

Client and Server Script
  - The script will be executed both server-side and on the user's browser (most commonly found with validation functions)

API Server Blocks

Blocks to call End Points and the Form Utilities worker.

Button Blocks

Buttons have many of the same blocks as other fields. they can also be triggered by other events.

Form Field Blocks

As well as showing, hiding, and updating fields, there are blocks to invoke custom functions and filter the options in lists.

Form Function Blocks

These blocks let you invoke custom functions, add tracing, check if the script is working browser-side, and remove data from a page.

Form Page Blocks

These blocks are used when navigating between pages and to manage repeating pages.

Form Variable Blocks

Variables hold values not visible to the users of your form. They are used to store data and pass information around your form.

Map Blocks

Create, update and manipulate JavaScript map objects.

Share this page

Facebook icon Twitter icon email icon

Print

print icon