Data entered into table not submitted when "Repeat Settings" are set

joell91868939

14-03-2017

Hi,

I'm creating an Address History Table. Trying to submit the rows of the address history table via the submitted XML.

When I define the Table in an adaptive form, with one row, then I manually enter a "Street Number" into the table, the Data is submitted fine.

"============================="

<?xml version="1.0" encoding="UTF-8"?><afData>
  <afUnboundData>
    <data/>
  </afUnboundData>
  <afBoundData>
    <data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
      <Addresses>
        <ResidentialAddresses>
          <ResidentialAddress xfa:dataNode="dataGroup">
>>            <StreetNumber>11</StreetNumber>
          </ResidentialAddress>
        </ResidentialAddresses>
        <MailingAddress xfa:dataNode="dataGroup"/>
      </Addresses>
    </data>
  </afBoundData>
  <afSubmissionInfo>
    <lastFocusItem>guide[0].guide1[0].guideRootPanel[0].addressHistoryTable[0]</lastFocusItem>
    <computedMetaInfo/>
  </afSubmissionInfo>
</afData>

"==============================================="

When I change the Row settings "Repeat Settings" to min: 1 max: 5, the data is no longer submitted.

Q: Why do the repeat settings affect the submitted data?

We need to be able to add rows to the table, representing address history.

(Aside: we have the add working via JS: "firstRow.instanceManager.addInstance();")

Any info would be appreciated

Joel

Accepted Solutions (1)

Accepted Solutions (1)

James_R_Green

04-05-2017

Hi,

Have you seen this:

https://helpx.adobe.com/aem-forms/6/creating-forms-repeatable-sections.html#UsingrepeatsettingsofanX...

I used the XSD sample from the above page on a new form, copied over the fields from the data model sidebar, and changed the Sample panel to have an accordion layout (so that it adds the repeatable panel controls automatically) and added a submit button.

Submitting creates xml like this:

...

  <afBoundData>
    <data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
      <leaderName>Enter Name</leaderName>
      <assignmentDetails descriptionOfAssignment="123" durationOfAssignment="456" name="aaa" numberOfMentees="12" xfa:dataNode="dataGroup"/>
      <assignmentDetails descriptionOfAssignment="789" durationOfAssignment="999" name="bbbb" numberOfMentees="1112" xfa:dataNode="dataGroup"/>

    </data>
  </afBoundData>

...

Hopefully you can compare the XSD in the sample with the one you are using and see what's wrong. If not post your XSD here and I can take a look

Answers (0)