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

XML Sending and custom field mapping #52

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Use internal field_id for mapping field names
  • Loading branch information
JeffersonBledsoe committed Nov 23, 2022
commit 76b64f88eae84baaede98d91df4796d59b8f1cca
4 changes: 2 additions & 2 deletions src/formSchema.js
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ export default (formData) => {
fieldsets.push({
id: 'sendingOptions',
title: intl.formatMessage(messages.storedDataIds),
fields: formData.subblocks.map((subblock) => `mapping-${subblock.label}`),
fields: formData.subblocks.map((subblock) => subblock.field_id),
});
}

@@ -139,7 +139,7 @@ export default (formData) => {
...Object.assign(
{},
...formData.subblocks.map((subblock) => {
return { [`mapping-${subblock.label}`]: { title: subblock.label } };
return { [subblock.field_id]: { title: subblock.label } };
}),
),
},