<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Conditional data type formating based on drop down box choices</title><link>https://www.infopathdev.com:443/forums/thread/93274.aspx</link><pubDate>Wed, 25 Sep 2013 19:10:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93274</guid><dc:creator>Jacuzzitub</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=93274</wfw:commentRss><description>Good afternoon, everyone. &lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m relatively new to InfoPath, and trying to create a complicated form. It&amp;#39;s a financial analysis form used by underwriters. &lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ve run into a problem trying to conditionally format certain text boxes. See the below picture. &lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s what I need to do:&lt;br /&gt;
&lt;br /&gt;
1. If &amp;quot;%&amp;quot; is selected in Discount Method, the adjustment text box needs to be to formatted as a decimal percentage.&lt;br /&gt;
    If  &amp;quot;$&amp;quot; is selected in Discount Method, the adjustment needs to be formatted as a integer. &lt;br /&gt;
&lt;br /&gt;
2. If formatted for &amp;quot;%&amp;quot;, the Disallowed amount is calculated by multiplying the Given amount by the Adjustment value. &lt;br /&gt;
    If formatted for &amp;quot;$&amp;quot;,  the Disallowed amount is calculated by multiplying the Given amount by the Adjustment value. &lt;br /&gt;
&lt;br /&gt;
3. If &amp;quot;Remove&amp;quot; is selected in Allocation, the Disallowed amount goes nowhere. &lt;br /&gt;
    If &amp;quot;Long Term&amp;quot; or &amp;quot;Current&amp;quot; is selected in Allocation, the Disallowed amount needs to be summed in &amp;quot;Allocated from Long Term&amp;quot; or &amp;quot;Allocated from Current&amp;quot; respectively. &lt;br /&gt;
&lt;br /&gt;
Any ideas?&lt;br /&gt;
&lt;br /&gt;

Thanks in advance for your help.</description></item></channel></rss>