Einhugur OpenDocument Text Plugin for Xojo |

# Paragraph.ApplyFieldData Method

Applies field data to the given Paragraph only.

ApplyFieldData(
fieldName as String,
data as String)

#### Parameters

fieldName
  Name of the field to fill in.
data
  Data to fill into the field.

#### Remarks

Field data is to make it easy to create templated forms where you put in for example [Name]. And then that can be filled in with ApplyFieldData by specifying [Name] as fieldName.

If field does not seem to work then your more than likely to have more than one formatting run within same field. Making for example in case of [Name] then [N could belong to one formatting run and ame] could belong to other. This cannot work, a single field must belong within one formatting run for it to work.
It is not valid to replace a field with text that contains tab key.

#### See Also

Paragraph Class