Wiki Link: [discussion:1036]
How to Add Javascript? 

Dec 4 2008 at 6:14 PM
This tool is excellent, it makes life easier for a lot of us :)

We do a lot of custom scripting on our forms, so I was wondering if there is a way to add scripts to the report?
- OnLoad/OnSave for fields and OnChange for Forms?

Regards
Thomas
Denmark

Coordinator
Dec 5 2008 at 3:03 AM
I'm glad you like the tool. I intentionally limited the scope to just the visible areas of the form.
But the JavaScript is in the exported customizations - so the data is accessible.

The OOXML I used was very simple - it just used the document part.
But there is another part (rels) that can be used to establish cross references within the document, such as a table of contents.

If you wanted to include the JavaScript in the report - I think I'd include them in an Appendix or in a section for each entity so as not to screw up the formatting of the tables.

It should be possible to modify the transform and establish relationships between the forms and fields to create links to the scripts for the events.

But this would require a bit more time than I can allocate to it right now. I've shared my code - so if someone can address this request it would be great if they could share.

Coordinator
Apr 16 2011 at 7:18 PM
Sean McNellis created a version that provides information about form scripts in the output. See the Downloads tab to download the code for that.


Updating...
Page view tracker