Form File Validate script not firing in merge

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v6)  /  Form File Validate script not firing in merge

DynamicPDF CoreSuite for .NET (v6) Forum

Hi
I'm doing some system customisation for a client.
 They use a ticketing system which incorporates the Merger code (v6 for .NET)  to produce a Print-at-home ticket by merging data from the system into a PDF template containing form fields.
The final PDF ticket is delivered password-protected.
We construct the PDF template freely, but have no control over how the pdf creation happens.
What we would like to do is conditionally set the fillColor of one of the form fields, depending on its Value.
I have made a simple javascript to do this, and attached it to the Validate event of the form field in the template.
This works fine when I manually import a sample dataset in Acrobat Pro.
But it doesn't work when the data is merged into the templateand produced  by the system.

Is this by design ? Should the merge process be triggering the Validate action?
Or does the form field javascript perhaps not survive the merge?
If that's the case, could I put the javascript somewhere else, that would survive? (On the Open action, perhaps)?

I have passed this issue on to the support team for the system concerned, but they don't seem to know the answer, and I can't see the answer in your help pages (yet).
Help!.......

 Ken McSwain
ken.mcswain@engram.com.au


Posted by a ceTe Software moderator
Hello,

DynamicPDF Core Suite for .NET does not support triggering JavaScript while merging and updating the fields. However, you could retrieve and set the value using our library during merging without using JavaScript. Adding JavaScript on the open action of the PDF may work as well.

Thanks,
ceTe Software Support Team
Thanks
As a user site, we can't access the calls to merge the data, but I'll try using the Page Open event.
Ken

All times are US Eastern Standard time. The time now is 11:17 PM.