Ok, I'm a newbie to Infopath, but think I know enough to be dangerous. I've searched through the forum for my particular issue, but could not find anything like what I need to fix. I'd appreciate any help you can provide.
I have a form that has a drop down list box tied to a secondary data connection (XML resource file) with three criteria:
LevelA
LevelB
LevelC
Each one of these, when selected, populate starter text into a corresponding text box. That part I got working (thanks goes to Hilary Stoupa for her sample.xsn file - unfortunately, I could not locate the post that I got it from; I stumbled on it looking for something else).
In the starter text (a template if you will), I have variables within the text that I need to replace based on data entered into the form elsewhere. By variable text, I simply mean I've designated keywords in that particular element in the XML file to identify them as replaceable.
StarterText example:
VariableA sometext sometext. VariableB sometext VariableC sometext... etc.
So my question:
How would I take variable text populated via a formula in the default value of the text box and replace it with data from the form?
Additional criteria: I need to be able to expand this to any number of variables as the starter text may change in the future, so I need it to be scalable.
I hope that's enough information to help solve this problem.
Thanks for your help!