Skip to main content

INSERT_TEXT

Insert text at the given location (cursor, xpath or report). If the step reads text from the flowContext, you can use a preceding SET step to provide the content.

At a glance

  • Category Editor
  • Aliases CTX_INSERT_TEXT
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional path or variable name to read the content from the flowContext. If omitted, the step uses the content from the default text input.NonefalsetrueNoneNone
atWhere to insert the text. Use CURSOR (default), XPATH, or REPORT.NonefalsefalseNoneNone
xpathXPath expression used when at is XPATH.NoneConditionalfalseNoneRequired when at = XPATH
forceWriteWrite content even if the document is considered read-only.NonefalsefalseNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
textText content to insert. If omitted, reads from the in parameter or default text input.Nonefalsefalse

Examples

Insert text from a SET step

- step: SET
text: "This text will be inserted"
- step: INSERT_TEXT
at: CURSOR

Insert text from a flow variable

- step: INSERT_TEXT
in: "{{ flowContext.myText }}"
at: XPATH
xpath: "/doc/story/header/title/p"

See Also

General Resources: