Set Content
Last updated
Last updated
Set Content
is a that allows you to set the content of any element on the page or form.
Refer to the block for dynamically generated content.
The block comes in two modes which are discussed below.
The Mode 1 version of the Set Content block consists of (from left to right):
Set Content of: Overwrite the contents of the chosen Element with Content provided.
Append to: Add the Content provided to the existing content of the chosen Element.
Prepend to: Add the Content provided before any existing content of the chosen Element.
The Mode 2 version of the Set Content block consists of (from left to right):
Set Content of: Overwrite the contents of the chosen Element with Content provided.
Append to: Add the Content provided to the existing content of the chosen Element.
Prepend to: Add the Content provided before any existing content of the chosen Element.
The image below shows an example of the Mode 1 version where the Content value parameter attached to a Text block containing "Hello World!".
In the next example we see a Mode 2 version where the Element value parameter is attached to an Element block.
NOTE: Using a CSS selector, you can operate on multiple elements that match the criteria specified by the selector. See the references below for more information:
The last example shows the Content value parameter attached to a Variable Value block.
Behavior: that allows you to choose from three options:
Element: to choose the element you want to change the content of.
Content: that accepts a value containing the content you want to set.
Behavior: that allows you to choose from three options:
Element: that accepts either a value in the form of a or an value. The Element block comes pre-attached for your convenience but can be removed and customized.
Content: that accepts a value containing the content you want to set.
The next example also shows a Mode 2 version but this time the Element value parameter is attached to a Text block containing a that selects the same element.