Saving the payload
The typical flow requires to send the payload back to a backend after pressing an outcome. If you have this form definition:
Loading...
You can listen to the outcome click and send the payload with:
onOutcomePressed(payload) {
const withoutTempVariables = _.withoutTemp(payload); // remove $temp variables
restService.save(withoutTempVariables);
}
render() {
return <Form
config={frmDef}
onChange={this.onChange}
onOutcomePressed={this.onOutcomePressed}
initialPayload={}
/>
}