<?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: Is there an easy way to automatically replace a charatcter entered by a user into an Infopath text box with a string of characters?</title><link>https://www.infopathdev.com:443/forums/thread/84031.aspx</link><pubDate>Tue, 30 Oct 2012 15:47:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84031</guid><dc:creator>Jammeaze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84031.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84031</wfw:commentRss><description>&lt;p&gt;I have a similar but a little more involved scenario that I think the above formula might help solve, but I&amp;#39;m at a loss as to how to modify it due to lack of full understanding of how substring-before and substring-after work - especially in the above formula.&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;I&amp;#39;m thinking that if one character can be replaced with a string of characters, then several characters (or a &amp;quot;variable&amp;quot;) can be replaced the same way. I just need help formulating the expression.&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;Here&amp;#39;s a more concrete example of what I&amp;#39;m trying to do to help put it all into perspective:&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol style="FONT-STYLE:normal;MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Verdana;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-STYLE:normal;FONT-FAMILY:Verdana;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;I have a drop down list box (LEVEL) that gets its display name data filtered from a secondary source xml file with repeating data around &amp;quot;meets&amp;quot;, &amp;quot;needs improvement&amp;quot;, and &amp;quot;exceeds&amp;quot;. &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;ol style="FONT-STYLE:normal;MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Verdana;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-STYLE:normal;FONT-FAMILY:Verdana;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;Along with each node is an element I named StarterText. Here&amp;#39;s a snippet: NHFirstName has maintained… PRONOUN has done an outstanding… PosPRONOUN efforts have shown…&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;Additionally, in the form I have a text box (EmployeeName) that captures the Employee Name with the expectation that it&amp;#39;s one string, first and last name with a space in between AND a separate option button control for gender.&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;Here&amp;#39;s the flow I envision: Employee name is entered, the gender is selected, Meets is selected in the drop down box, the starter text is populated in the text box field (PROFESSIONAL). I&amp;#39;ve actually got working controls up to this point.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;ol style="FONT-STYLE:normal;MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Verdana;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-STYLE:normal;FONT-FAMILY:Verdana;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;This is what I want to happen next: &lt;/span&gt;&lt;/li&gt;
&lt;ol style="FONT-STYLE:normal;MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Verdana;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-STYLE:normal;FONT-FAMILY:Verdana;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;NHFirstName in the text box field (PROFESSIONAL) is replaced with the first name in EmployeeName&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;ol style="FONT-STYLE:normal;MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Verdana;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-STYLE:normal;FONT-FAMILY:Verdana;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;Every PRONOUN instance changes to &amp;quot;he&amp;quot; or &amp;quot;she&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;Every PosPRONOUN instance changes to &amp;quot;his&amp;quot; or &amp;quot;her&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Verdana;FONT-SIZE:10pt;"&gt;Both pronoun instances will be based on gender selection, of course&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;
&lt;ol style="FONT-STYLE:normal;MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Verdana;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-STYLE:normal;FONT-FAMILY:Verdana;FONT-SIZE:10pt;FONT-WEIGHT:normal;"&gt;So, is there a concat formula that I can put together to accomplish the above. I feel it&amp;#39;s possible, but just out of my reach.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Is there an easy way to automatically replace a charatcter entered by a user into an Infopath text box with a string of characters?</title><link>https://www.infopathdev.com:443/forums/thread/77376.aspx</link><pubDate>Tue, 10 Apr 2012 16:22:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77376</guid><dc:creator>A_LHIN</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77376.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77376</wfw:commentRss><description>&lt;p&gt;Thanks very much!&amp;nbsp; I had to make sure that whatever I use will be able to handle multiple instances of the characters appearing in the same text box, so I tried it with low expectations.&amp;nbsp; BUT, it works perfectly!!&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Very helpful Ernesto - thank again!&lt;/p&gt;</description></item><item><title>Re: Is there an easy way to automatically replace a charatcter entered by a user into an Infopath text box with a string of characters?</title><link>https://www.infopathdev.com:443/forums/thread/77351.aspx</link><pubDate>Tue, 10 Apr 2012 15:19:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77351</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi-&lt;/p&gt;&lt;p&gt;Translate does a character per character replacement, so I don&amp;#39;t believe it will work in this scenario.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I would try something like:&lt;/p&gt;&lt;p&gt;concat(substring-before(yourfield, &amp;quot;&amp;amp;&amp;quot;),&amp;quot; and &amp;quot;,substring-after(yourfield, &amp;quot;&amp;amp;&amp;quot;)) &lt;/p&gt;&lt;p&gt;Of course, the condition on this rule is that the yourfield contains &amp;amp;. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Give it a shot and see if that works. Good luck! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Is there an easy way to automatically replace a charatcter entered by a user into an Infopath text box with a string of characters?</title><link>https://www.infopathdev.com:443/forums/thread/77326.aspx</link><pubDate>Mon, 09 Apr 2012 20:43:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77326</guid><dc:creator>A_LHIN</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77326</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am new to Infopath, and I am currently using Infopath 2007 (although I could get access to 2010 if that will help...).&amp;nbsp; &lt;/p&gt;&lt;p&gt;My problem is that we have created a simple form which contains a couple of text boxes.&amp;nbsp; The form is published in a Sharepoint library, and once it gets submitted, it triggers a workflow and a webservice call.&amp;nbsp; &lt;/p&gt;&lt;p&gt;We have found that when users enter any of the following three characters to abbreviate their typing, &amp;quot;&amp;amp;&amp;quot;, &amp;quot;&amp;lt;&amp;quot;, &amp;quot;&amp;gt;&amp;quot;, it has an adverse effect on the downstream workflow [ root cause appears to be &amp;amp;, as it is also a character that is used in xml for &amp;lt; and &amp;gt; ].&amp;nbsp; &lt;/p&gt;&lt;p&gt;Easy solution seems to be simply replacing any instance of these characters in the text boxes with &amp;quot;and&amp;quot;, &amp;quot;less than&amp;quot;, and &amp;quot;greater than&amp;quot;, respectively.&amp;nbsp; However, the translate function only seems to replace these with the first character of the replacement string. &lt;/p&gt;&lt;p&gt;Any suggestions would be greatly appreciated!&lt;/p&gt;&lt;p&gt;Thanks!! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>