2022.1

Table Of Contents
See WordPress REST API developer endpoint reference.
Tip
More examples of how to use an API to load external content are given in these How-to's:
l Using the Google Maps API
l Using the OpenWeatherMap API
Using scripts in Dynamic Tables
In most cases you don't need a script to change the content or style of rows or cells in a
"Dynamic Table" on page866.
However, if the contents or style of cells or rows in a Dynamic Table need to be personalized
based on the value of a field, you will need a script.
This topic gives some information that will help you to write a script for (an element in) a
Dynamic Table.
It is assumed that you are familiar with the scripting basics; see "Writing your own scripts" on
page918.
Quick-start a script with the Create script button
The easiest way to add a script that targets a specific element (usually a cell or span) that is
linked to a data field in a detail table, is this:
1. In Design mode, select the element.
2. Click the Create Script button next to the Field drop-down on the Attributes pane.
3. Click Yes.
As a result:
l The element's data-field attribute will be renamed to data-script.
l If the element had a data-format attribute, that attribute will be removed.
l A new script will be created and opened in the Script Editor.
Page 951