department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 201 forks source link

I'm encountering an issue with the Array Builder Pattern (Mu... #93591

Open platform-support-slack-integration[bot] opened 6 days ago

platform-support-slack-integration[bot] commented 6 days ago

Submitted By: matt.kerns Topic: Forms Team: Tier 1 Support

I'm encountering an issue with the Array Builder Pattern (Multiple responses list & loop) component that I am integrating in the 10-10EZR form. After filling out the emergency contact pages and clicking "Continue," the form unexpectedly navigates back to the beginning instead of proceeding to the next page. I suspect the issue might be with the onNavForward function in my arrayBuilderPages configuration, possibly related to how props.formData['view:hasEmergencyContactAddress'] is being accessed or used in the navigation logic. I've tried logging the form data and reviewing the navigation helpers, but haven't pinpointed the cause. Has anyone experienced a similar problem or have suggestions on how to fix this navigation issue?

platform-support-slack-integration[bot] commented 6 days ago

Slack Thread Link: https://dsva.slack.com/archives/CBU0KDSB1/p1727278949573729