Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with populating Complex Repeating Fields from an JSON Array #50

Open
SergeyFM opened this issue May 10, 2024 · 0 comments
Open

Comments

@SergeyFM
Copy link
Contributor

The problem occurs in the RepeatingControlTests within Tests.cs. When attempting to populate the document, data from data.json does not fill the fields as expected; instead, only new empty lines are added. This issue specifically affects the complexItems array.

Here's the JSON data from the test:

  "complexItems": [
    {
      "name": "First Name",
      "address": "First Address"
    },
    {
      "name": "Second name",
      "address": "Second address"
    }
  ]

The template contains:

Complex, Legacy (using repeatingitem):
Name: Click or tap here to enter text.,  Address: Click or tap here to enter text.

However, the resulting document contains two rows with no data:

Complex, Legacy (using repeatingitem):
Name: Click or tap here to enter text.,  Address: Click or tap here to enter text., 
Name: Click or tap here to enter text.,  Address: Click or tap here to enter text.

I am investigating this behavior to identify the underlying cause. Additionally, I would like to ask the team: Does this issue occur only in my setup, or has anyone else encountered similar problems with the complexItems array?

I will provide updates as I progress and plan to submit a pull request once the issue is resolved. Any input from the team is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant