data

Indicates whether the image provided to the widget should be represented as a reference or should be embedded.

The data property affects the object behavior when the form is filled.

Syntax

Reference_Syntax.data = "link | embed"

Values

Type

Values

String

  • link

  • embed

The image is represented as a URI reference. If the user provides the widget with a URI, the href attribute of the container’s image object is updated to reflect the new URI. If the image object was previously loaded with an embedded image, that image is removed from the object.

  • embed

The image is embedded in the container’s image object. If the user provides the widget with a URI, the image referenced by the URI is embedded as the content of the image object.

Applies to

Model

Object

Form Model

imageEdit

Version

XFA 2.1

Examples

JavaScript

TextField1.resolveNode("ui.#imageEdit").data = "embed";

FormCalc

TextField1.ui.#textEdit.data = "embed"

// Ethnio survey code removed