I use openTBS to parse an invoice template. The invoice address is supplied via a custom function. I would like to conditionally more information to the filled in data.
I was thinking of permitting the invoice address (the filled in data) to contain another TBS field, e.g. for a person to speak to, and have TBS re-parse the form. In other words, can I make TBS parse a template twice if the first run supplies a new TBS field?
Example:
[abk.invoiceaddress]
--- is replaced with -->
ACME inc.
[abk.person]
Somestreet 123
Somecity 54321
--- should be replaced with -->
ACME inc.
Mr. Knowitall
Somestreet 123
Somecity 54321
There seems to be no option for recursive replacement and calling MergeField()
twice does not have the desired effect.