# Elementname: `Action`

## Description

Associates an action with a text. Once the text is placed on the page, the associated action will be executed. The action can be compared to an invisible character. When the publisher outputs the character, the corresponding instructions will be run.

Allowed attributes: (none)

Child elements: Mark

Parent elements: B, Case, Color, Fontface, ForAll, I, Li, Loop, NoBreak, Otherwise, Paragraph, Span, Text, Textblock, U, URL, Until, While

### Attributes

## Example

    <Pageformat width="210mm" height="4cm"/>

    <Record element="data">
      <PlaceObject>
        <Textblock>
          <Paragraph>
            <Value>
              Row
              Row
              Row
              Row
            </Value>
          </Paragraph>
        </Textblock>
        <Textblock>
          <Action>
            <Mark select="'textstart'"/>
          </Action>
          <Paragraph>
            <Value>
              Row
              Row
              Row
            </Value>
          </Paragraph>
        </Textblock>
      </PlaceObject>
      <NewPage/>
      <Message select="sd:pagenumber('textstart')"></Message>
    </Record>

## See also

Textblock, Mark

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 3.2.0 | Start page | Command reference | Other language: German