<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Question referring to combo box and radio button to change equation</title><link>https://www.infopathdev.com:443/forums/thread/55891.aspx</link><pubDate>Tue, 15 Jun 2010 15:55:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55891</guid><dc:creator>tehashi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55891</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi;&lt;/p&gt;&lt;p&gt;I am porting a PDF form i have into Infopath and i have stumbles upon a problem.&amp;nbsp; My original form had a spreadsheet like page which had lines for each of around 20 items.&amp;nbsp; Each line had a field the user would input the quantity of that item and 2 other fields which would calculate sale price and dealer price.&amp;nbsp; This was done with a simple java-script equation for the sale price, but there was also a combo box to select pricing from 2 different zones which changed the dealer price.&amp;nbsp; This was the same as the other java-script code except it included an extra if...then snippet.&lt;/p&gt;&lt;p&gt;I have set up my form in Infopath to use a repeating table with a combo box to select the item type and fields for the quantity and 2 prices.&amp;nbsp; I also have a radio button for the 2 zones.&amp;nbsp; My problem now is that i cannot figure out how to incorporate them easily like i did in Acrobat.&amp;nbsp; I cannot figure out how to add any sort of code and the only workaround i figured out is by adding rules to the quantity field.&amp;nbsp; however that requires 2 sets of 2 rules for each entry in the combo box.&amp;#39;&lt;/p&gt;&lt;p&gt;I read something about using an xml data source, but i am new to this and the book i was able to find on Infopath is insanely huge and cumbersome to use.&amp;nbsp;&amp;nbsp; Any suggestions/help?&amp;nbsp; If needed, i can upload (or email) a copy of the form for review.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>