Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unnamed fields in a form: how to reference them in a dataset

Level 1
Level 1

Hi all,

I am trying to programmatically fill out an XFA form. The form contains a table in which rows can be added dynamically. This is what the relevant template segment (in a simplified form) looks like:


               <subform name="page6">

                     <subform name="headerSF">

                          <field name="TextField13">

                          <field name="TextField15">

                          <field name="TextField14">

                     <subform name="Table1">

                          <subform name="HeaderRow">


                          <subform name="Row1">

                               <subform name="buttons">

                                    <field name="addRow">

                                    <field name="DeleteRow">

                                    <field name="moveUp">

                                    <field name="moveDown">


                               <field name="quantity">

                               <field name="unitPrice">










As you can see, quantity and unitPrice are named, but the other fields in the table row are not.

So, I can easily specify the quantity and unitPrice via the following dataset XML:








                    <HeaderRow xfa:dataNode="dataGroup"/>


                              <buttons xfa:dataNode="dataGroup"/>




but how do I specify the other, unnamed, fields for the table row?

Thanks a lot in advance.

-- DC Dweller

1 Reply
Level 10
Level 10


the data of the unnamed fields won't get saved in the data DOM, because of the missing namings.

You can easily check how the data DOM looks like.

Add a text field with this script in it's calculate event to show the data DOM's structure.

var dump ="pretty");

this.rawValue = dump;

You'll see something like:

<?xml version="1.0" encoding="UTF-8"?>

<xfa:data xmlns:xfa="">