transformForSubmit
strips non-empty showPagePerItem
pages
#140
Labels
[practice] engineering
Engineering related work
What Happens
transformForSubmit
filters out data from active pages when the properties of those pages match properties in schemas of other inactive pages - even though properties are required to match across these pages due to them having been created withshowPagePerItem
using the common property as thearrayPath
.How to Reproduce
showPagePerItem
, with the original page as thearrayPath
:Result:
formData that's returned from
transformForSubmit
lacks adisabilities
propertyWhy?
us-forms-system/src/js/helpers.js
The problem happens within
transformForSubmit
:getInactivePages
, which will put all inactive pages into an arrayfilterInactivePages(pages, form)
gets called with this inactive page listdisabilities
as a propertydisabilities
will be stripped from the form datadisabilities
property with data on itExpected behavior
Properties on inactive pages are not stripped if they're also found in active pages.
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: