<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Change variable text within a control's default value based on form data</title><link>https://www.infopathdev.com:443/forums/thread/83944.aspx</link><pubDate>Fri, 26 Oct 2012 18:32:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83944</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83944</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s an interesting scenario.&amp;nbsp; InfoPath doesn&amp;#39;t do a great job of replacing entire terms like VariableA or VariableB with another term.&amp;nbsp; You could set up your formula so that it displays like concat(&amp;quot;some text here&amp;quot;, VariableA, &amp;quot; and some more text &amp;quot;, VariableB).&amp;nbsp; Then the variables are text fields which you can change at will.&amp;nbsp; However, this approach is not data driven and will require changes to the form if you decide to add more variables or change the text.&amp;nbsp; Hope this at least guides you in the right direction.&lt;/p&gt;</description></item><item><title>Change variable text within a control's default value based on form data</title><link>https://www.infopathdev.com:443/forums/thread/83828.aspx</link><pubDate>Wed, 24 Oct 2012 15:23:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83828</guid><dc:creator>Jammeaze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83828</wfw:commentRss><description>&lt;p&gt;Ok, I&amp;#39;m a newbie to Infopath, but think I know enough to be dangerous. I&amp;#39;ve searched through the forum for my particular issue, but could not find anything like what I need to fix. I&amp;#39;d appreciate any help you can provide.&lt;/p&gt;
&lt;p&gt;I have a form that has a drop down list box tied to a secondary data connection (XML resource file) with three criteria:&lt;/p&gt;
&lt;p&gt;LevelA&lt;/p&gt;
&lt;p&gt;LevelB&lt;/p&gt;
&lt;p&gt;LevelC&lt;/p&gt;
&lt;p&gt;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,&amp;nbsp;I could not locate the post that I got it from; I stumbled on it looking for something else).&lt;/p&gt;
&lt;p&gt;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&amp;#39;ve designated keywords in that particular element in the XML file to identify them as replaceable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;StarterText example: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;VariableA sometext sometext. VariableB sometext VariableC sometext... etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So my question:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;How would I take variable text populated via a formula in the default value of the text box&amp;nbsp;and replace it with data from the form?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Additional criteria:&lt;/strong&gt; 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.&lt;/p&gt;
&lt;p&gt;I hope that&amp;#39;s enough information to help solve this problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;</description></item></channel></rss>