<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>How can I modify a Rich Text field through script and keep the formatting?</title><link>https://www.infopathdev.com:443/forums/thread/39083.aspx</link><pubDate>Mon, 02 Mar 2009 20:01:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39083</guid><dc:creator>Petronomicon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39083</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m so close on this, but cannot get it to work.&lt;/p&gt;
&lt;p&gt;Could someone please post in &lt;strong&gt;Jscript&lt;/strong&gt; how to copy or modify a rich text box while preserving the format?&lt;/p&gt;
&lt;p&gt;for example: my:field1 is rich text and I would like to programmatically add&amp;nbsp;a user name to this field when a user submits the form.&amp;nbsp;I need to keep the original formatting.&lt;/p&gt;
&lt;p&gt;I know that you have to refer to the xml nodes and perform an appendchild function, but everything I&amp;#39;ve tried results in nothing happening.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Your help or guidance would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks, Petro&lt;/p&gt;</description></item></channel></rss>