-
1. Re: Is it possible for fragments to contain variable content?
past-tense Apr 27, 2012 8:11 AM (in response to past-tense)Well, as I was writing the above question, I had an idea as to how I mihgt be able to acheive this... I tried it and it worked.
In my master page, I he turned my entier header into a fragment. In the header is an empty text field that I have formatted to look as I want the title text to appear. Also in my master page is a "FormOptions" subform with text fields for each 'variable' such as title.
In the Title text field in the fragment, in the initialize code I've used:
this.rawValue = FormSettings.Title.rawValue;
this.access = "readOnly";
Now, when I create a new form, I can set the default values of the 'variable' text boxed to the appropriate values, then hide the "FormOptions" subform from view by setting it to invisible. I haven't had much of a chance to test, but it looks to work well. I've also mathe "FormOptions" subform and it's child fields to have no data binding, so that the exportable xml of the form doesn't get cluttered up.
If anyone can think of a less convoluted method, I'd still love to hear it. I am also still interested in hearing about fater ways to updated multiple forms when I edit a fragment.

