From 088db4784929223c3786239e3a0da318445bee49 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sun, 13 Jun 2021 19:50:28 +0200 Subject: [PATCH] XFA - Value in field can be html --- src/core/xfa/template.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;