Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Hi,
We are evaluating a potential purchase of corporate license for phpdocx.
The product looks great so far, and we were looking for a way to give the form designers more control over 'truncation' rules for different fields. As far as I know, the only way we can control truncating is by specifically truncating the data prior to the placeholder replacement, correct?
If so, might there be some way in which placeholder variables can contain additional data in them? e.g. $FIRSTNAME[maxlen:50]$
If so, we could do something like getTemplateVariables prior to the replacements and read the maxlength attribute out of the variables metadata, thereby granting the form editors control over truncation rules. Allowing metadata in placeholders could be a powerful, abstract way to unlocking all sorts of interesting possibilities beyond just truncation, although that's our primary focus right now.
I don't know if something like this is possible, or perhaps you provide a different workaround for controlling truncation?