Dynamically hiding one or more elements in InfoPath 2010/2013 is a straight forward configuration. Before starting decide if you want to hide only one or more elements (e.g. a group of input boxes including labels). If you just want to dynamically display and hide one element you can just select this one. If you want to hide more than one element you first have to insert a section (and possibly a table for layout reasons). Now either apply a formatting rule on the single element or on the section. The first rule should hide the element, so enable the hide element checkbox – if necessary apply a condition. Now apply a second rule. The second rule should include the condition for displaying the element/section. That`s it. Now publish the form. A pictured guidline can be found here, it is valid for SP 2010 and 2013 and both InfoPath 2010 and 2013.