The form elements to process
Optional
prepareNestedInjectables?: (resource: T, preparer: (resourceText: string) => string) => TAn optional function to replace nested injectables when creating multiple
resources from repeatable sets. Only required if the resource
param is
not a string
.
A function to inject values, this allows custom formatters to be used.
Return undefined
to prevent the injection from recursively continuing.
The resource that contains properties that support injection or a string
The form submission data to process
Process a resource with injectable element values to turn a single resource (could be a single) into multiple resources. e.g.
"{ELEMENT:Children|Child_Name} {ELEMENT:Family_Name}"
with the following submission data:Would result in the following resources:
"John Smith"
"Jane Smith"
Example