<?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: Copy a fields data to another field</title><link>https://www.infopathdev.com:443/forums/thread/9140.aspx</link><pubDate>Tue, 28 Feb 2006 06:42:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9140</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9140.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9140</wfw:commentRss><description>Hey Carlos,&lt;br /&gt;Great to hear that you got the codeless form working. It's often a hard choice between declarative and programmatic. Declarative is harder to debug, but easier for non-programmers to modify.</description></item><item><title>Re: Copy a fields data to another field</title><link>https://www.infopathdev.com:443/forums/thread/9139.aspx</link><pubDate>Tue, 28 Feb 2006 05:15:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9139</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9139.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9139</wfw:commentRss><description>OK, so I figured it out using no code.  What I did was to select FieldA, got to its text properties, Rule and Set Condition &amp;quot;FieldB is blank&amp;quot; with the Action &amp;quot;Set a fields value: @FieldB = @FieldA&amp;quot;&lt;br /&gt;&lt;br /&gt;So it only populates it once to satisfy the FieldB is blank.</description></item><item><title>Re: Copy a fields data to another field</title><link>https://www.infopathdev.com:443/forums/thread/9138.aspx</link><pubDate>Thu, 23 Feb 2006 03:09:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9138</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9138</wfw:commentRss><description>The trick here is to copy the contents from one firld to the other only is the field is NULL.  Once the field is populated, then it will no longer copy it over.  I like to do this in code, but my VBScript isnt very good.&lt;br /&gt;&lt;br /&gt;EG:&lt;br /&gt;Dim FieldB&lt;br /&gt;Dim FieldA&lt;br /&gt;&lt;br /&gt;Set FieldB = XDocument.......(form field)&lt;br /&gt;Set FieldA = XDocument.... (form field)&lt;br /&gt;&lt;br /&gt;If FieldB = ""&lt;br /&gt;FieldB.text = FieldA.text&lt;br /&gt;End if&lt;br /&gt;&lt;br /&gt;(yes, its a VERY basic code, but you get the idea)</description></item><item><title>Re: Copy a fields data to another field</title><link>https://www.infopathdev.com:443/forums/thread/9137.aspx</link><pubDate>Wed, 22 Feb 2006 10:49:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9137</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9137.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9137</wfw:commentRss><description>Hello&lt;br /&gt;  If i understand you scenario correctly - you want a button that will submit to the database and change the value of Field B. You can do this in Rules if you do not want to use code. Open the submit button properties and change the action to Rules and Custom Code option. Now add two rules on your button, one to submit to the database and the other to copy the data from Field A to Field B. The rules are run in the order they are specified so if you want the data to copied over before you submit to the database then add that rule above the submit rule.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Copy a fields data to another field</title><link>https://www.infopathdev.com:443/forums/thread/9136.aspx</link><pubDate>Wed, 22 Feb 2006 08:27:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9136</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9136</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Depend on how you submit to your database if it's with code behind simply add this after your insert! need Help?&lt;br /&gt;&lt;br /&gt;If you do this with a submit button in infopath design mode (connected as a secondary datasource)I think that is impossible to do with the same button.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Copy a fields data to another field</title><link>https://www.infopathdev.com:443/forums/thread/5384.aspx</link><pubDate>Wed, 22 Feb 2006 04:03:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5384</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5384</wfw:commentRss><description>I want to know if its possible to copy the contents of 'Field A' into 'field B' after the submit button (to an SQL DB).  So essentially, when the Submit button is pressed, the data that was typed into 'Field A' wiill also copy into 'Field B' ONLY is 'Field B' is NULL.  If its not NULL, then it shouldnt copy over the new details.&lt;br /&gt;&lt;br /&gt;Any way of dong this without code, or with code in VBSCRIPT?&lt;br /&gt;&lt;br /&gt;Cheers</description></item></channel></rss>