I have a fragment that contains a script object and a text field. The text field's initialize event handler calls a method in my fragment's script object. Everything works fine in preview mode of the fragment.
When I create a new file and use the fragment in that file, the initialize event handler in my fragment is invoked just fine, but the method I'm trying to call in the script object in the fragment never fires. What I have looks like this:
File
- fragment
Fragment
- script object "Foo"
- someMethod()
- xfa.host.messageBox("Foo");
- text field::initialize
- xfa.host.messageBox('hello');
- Foo.someMethod();
When I preview the fragment, I get "hello" and "Foo" message boxes.
When I preview the file, I only get the "hello" message box.
Is what I'm trying to do possible?
Thanks,
Andy