2
1
0

Hi I am trying to set up a form bundle in composer with 2 forms.


I am trying to use the share extract data feature to pre fill data from the parent form at the start to the 2 other forms that follow. 

From my understanding I just need to the set "shareExtractData": true, in the job controller for the job, Make the data extract I want to share to 'publish' from the parent form and then set the extract data for the same data in the bundle forms to subscribe. 


This doesn't seem to work for me, am I missing something? the data extracts in the children forms that are getting bundled have the data extracts set up with the same xpaths and are set to subscribe.

Don


EDIT:


Just did some more testing and have found that I can only get the extract data form the 1st form that is included in the bundle to go the the next. I was hoping to get data from the very first form to all forms in the bundle with the use of Dataextracts

Here is my job definition:

{
  "jobDetails": { 
    "name": "Bundle-Test",  
    "processSubmitImmediate": true,  
    "version": "4.3.0"
  },
  "steps": [
    {
      "name": "Customer Onboarding",
      "type": "start",
      "actions": [
        {
          "name": "Customer Submission",
          "type": "Job Form Start",
          "redirectNext": false
        }
      ],
      "routes": [
        { "name": "Default",  "nextStep": "Additional forms" }
      ]
    },
    {
      "name": "Additional forms",
      "type": "",
      "shareExtractData": true,
      "shareFormData": false,
      "allFormsEditable": true,
      "showPreviousForms": true,
      "redirectNext": false,
      "actions": [
        {
          "name": "Bundle-1",
          "type": "Job Task Assign",
          "preCondition": "$formDataMap.include == 'true'",
          "redirectNext": false,
          "properties": [
            { "name": "Task Assign Email",  "value": "$formDataMap.emailAddress" },
            { "name": "Task Form Code",  "value": "bundle-1" },
            { "name": "Task Message",  "value": "Please complete Bundle-1" },
            { "name": "Task Subject",  "value": "Complete Bundle-1" },
            { "name": "Task Type",  "value": "Anonymous" }
          ]
        },
        {
          "name": "Bundle-End",
          "type": "Job Task Assign",
          "preCondition": "$formDataMap.include == 'true'",
          "properties": [
            { "name": "Task Assign Email",  "value": "$formDataMap.emailAddress" },
            { "name": "Task Form Code",  "value": "bundle-end" },
            { "name": "Task Message",  "value": "Complete Bundle-End" },
            { "name": "Task Subject",  "value": "Bundle-End" },
            { "name": "Task Type",  "value": "Anonymous" }
          ]
        },
        {
          "name": "Review Wait",
          "type": "Job Task Wait"
        }
      ],
      "routes": [
        { "name": "Default",  "nextStep": "Application Delivery" }
      ]
    },
    {
      "name": "Application Delivery",
      "type": "",
      "actions": [
        {
          "name": "Application Delivery",
          "type": "Job Delivery",
          "properties": [
            { "name": "Delivery Mode",  "value": "All Submissions" }
          ]
        },
        {
          "name": "Application Delivery Wait",
          "type": "Job Delivery Wait"
        }
      ],
      "routes": [
        { "name": "Default",  "nextStep": "Application Completed" }
      ]
    },
    {
      "name": "Application Completed",
      "type": "endpoint"
    }
  ]
}


In all 3 forms (Bundle-start, Bundle-1, Bundle-end) I have 4 fields,

one with a data extract, but not set to subscribe or publish,

one with a data extract set to publish but not subscribe

one with a data extract set to subscribe but not to publish

and one set with a data extract with both subscribe and publish 


Form my testing it looks like no data from the very first form will make it into the first form included in the bundle. However, data entered into the first bundled form after the triage form will pass onto the end form. the fields data that gets passed on is the field set with both subscribe and publish.


Is there a way I can use data extracts to capture the data from the very first triage form and pass it on to the rest of the forms in the bundling process?

    CommentAdd your comment...