<?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>Re: Can't override a default value of a text box function</title><link>https://www.infopathdev.com:443/forums/thread/60393.aspx</link><pubDate>Fri, 15 Oct 2010 14:21:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60393</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60393</wfw:commentRss><description>&lt;p&gt;Most likely this is happening because one of the fields being used in the default value is being set or modified when the form is opened, and you have the &amp;quot;Update this value when...&amp;quot; option selected.&lt;/p&gt;
&lt;p&gt;Allowing a field with a default value to be overriden is a tricky proposition.&amp;nbsp; I&amp;#39;d suggest providing a separate field for allowing user input, and not letting them modify the calculated one.&amp;nbsp; You can display the calculated value in an expression box for users to use as a reference.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If this value&amp;nbsp;then needs to be used in other calculations, you can use this expression, which will take on the value of the calculated field if the user-editable one is blank, and the value of the user-editable field if it&amp;#39;s not blank:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;concat(substring(&lt;strong&gt;&lt;u&gt;calculatedField&lt;/u&gt;&lt;/strong&gt;, 1, (&lt;strong&gt;&lt;u&gt;userField&lt;/u&gt;&lt;/strong&gt; = &amp;quot;&amp;quot;) * 100), substring(&lt;strong&gt;&lt;u&gt;userField&lt;/u&gt;&lt;/strong&gt;, 1, (&lt;strong&gt;&lt;u&gt;userField&lt;/u&gt;&lt;/strong&gt; != &amp;quot;&amp;quot;) * 100))&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Can't override a default value of a text box function</title><link>https://www.infopathdev.com:443/forums/thread/60390.aspx</link><pubDate>Fri, 15 Oct 2010 13:29:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60390</guid><dc:creator>tehprince</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60390</wfw:commentRss><description>I have a text box that calculates the default value based on the values of other fields.  I need the ability to override this default value and enter in a static value.  The problem is when I enter in my static value and save the form, close it and reopen the form the calculated value shows instead of the static value I entered.&lt;br /&gt;&lt;br /&gt;

&lt;img src="http://www.photoshop.com/accounts/26ebb7aa51c44c3db1bf80fa5c347c32/assets/d9b72f50df994b81b5b11cbdc1364dbb" width="407" height="436" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;

Any idea what might be causing this?</description></item></channel></rss>