diff --git a/src/core/xfa/template.js b/src/core/xfa/template.js index 0909e187b..b6467ca3d 100644 --- a/src/core/xfa/template.js +++ b/src/core/xfa/template.js @@ -2396,7 +2396,9 @@ class Field extends XFAObject { if (this.ui.imageEdit) { ui.children.push(this.value[$toHTML]().html); } else if (!this.ui.button) { - const value = this.value[$toHTML]().html.value; + const value = this.value.exData + ? this.value.exData[$text]() + : this.value[$toHTML]().html.value; if (value) { if (ui.children[0].name === "textarea") { ui.children[0].attributes.textContent = value;