<?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>checkbox values as variables instead of constants</title><link>https://www.infopathdev.com:443/forums/thread/97240.aspx</link><pubDate>Thu, 01 May 2014 15:56:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97240</guid><dc:creator>swl_ktown</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97240</wfw:commentRss><description>&lt;p&gt;I have a checkbox bound to a variable of type decimal.&lt;/p&gt;&lt;p&gt;Value when cleared: is .46&lt;/p&gt;&lt;p&gt;Value when checked is .59&lt;/p&gt;&lt;p&gt;(different /km reimbursement rates for different situations)&lt;/p&gt;&lt;p&gt;To make the form easier to maintain I want to parameterize the values of checked and cleared&amp;nbsp;and&amp;nbsp;take&amp;nbsp;them from a variables.&amp;nbsp; As the rates are changed over time they would only need to change that variable (used elsewhere in the form) or even read it from a list.&lt;/p&gt;&lt;p&gt;I have found that InfoPath sometimes recognizes XPaths in situations where you don&amp;#39;t expect it so I tried just copying the&amp;nbsp;XPath for the rate definition variable and pasting it in there instead of the constants.&amp;nbsp; The parser saw that as a string and wouldn&amp;#39;t let me&amp;nbsp;get away with it.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Is there a way of tagging a string so the parser will see it as an XPath?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If not I suppose I could get creative with events.&amp;nbsp;Maybe:&lt;/p&gt;&lt;p&gt;Value when cleared = low&lt;/p&gt;&lt;p&gt;Value when checked = high&lt;/p&gt;&lt;p&gt;2 action rules on change :&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;if low triprate=KmLowRate&lt;/p&gt;&lt;p&gt;if high triprate=KmHighRate&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir="ltr"&gt;I would just have to be careful that the defaults between the check box and triprate are bullet proof.&amp;nbsp; &lt;/p&gt;&lt;p dir="ltr"&gt;Any thoughts?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>