hof 20.1.11 → 20.1.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -39,3 +39,4 @@ Here are the fields you call this behaviour first to set config for it:
|
|
39
39
|
`groupOptional`: (Optional) set this to true if you want to land on the radio button question if all records in the group are deleted after creation,
|
40
40
|
`returnTo`: (Required) the next step if you want to add another object to this group
|
41
41
|
```
|
42
|
+
N.B. in the above example we use `continueOnEdit: true` on the individual record step (i.e. `/add-address`) to ensure we revisit the grouped fields page otherwise it will not be added to the group and the user will be returned to the 'Check Your Answers' page upon a field edit.
|
@@ -59,7 +59,7 @@ module.exports = SuperClass => class extends SuperClass {
|
|
59
59
|
fieldData.value = fieldSpec.derivation ?
|
60
60
|
this.runCombinerForDerivedField(fieldSpec, req) : fieldData.value;
|
61
61
|
fieldData.value = (typeof fieldSpec.parse === 'function') ?
|
62
|
-
fieldSpec.parse(fieldData.value) : fieldData.value;
|
62
|
+
fieldSpec.parse(fieldData.value, req) : fieldData.value;
|
63
63
|
}
|
64
64
|
|
65
65
|
return fieldData;
|