This is the workflow attached to the form container which contains the 4 form field components. I need to collate the data into an object to send to another workflow which passes the data to my email application.
In the component you need to create a variable and expose that to outside the component. Then update that on the change of the actual input. another option would be to create a template instead of a component
I had looked into the previously but could not find out how to get the on-change event to push the value into my component variables.
To do this, I followed this process:
Create a component variable - in my case ‘value’. Ensure the variable is visible outside the component
Create a workflow on the input field itself with an ‘on change’ event
The only action in the workflow was to ‘execute a workflow’. Link this to the following component workflow…
Create a workflow for the component for an ‘on execution’ event.
Give this component workflow a single action to ‘change a component value’.
Set the action to change the component variable in step 1 above to the value of the input field.
This should mean that each component instance runs these two workflows whenever their input values change, allowing these values to be exposed outside of the component.