<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code before rules</title><link>https://www.infopathdev.com:443/forums/thread/13543.aspx</link><pubDate>Sun, 04 Sep 2005 11:00:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13543</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13543</wfw:commentRss><description>Simply and beautyfull :) works great :)&lt;br /&gt;thanks&lt;br /&gt;</description></item><item><title>Re: Code before rules</title><link>https://www.infopathdev.com:443/forums/thread/13542.aspx</link><pubDate>Sun, 04 Sep 2005 10:22:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13542</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13542</wfw:commentRss><description>Hi Mar, &lt;br /&gt;Welcome to the Forum!&lt;br /&gt;There is no direct way do run code before Rules. &lt;br /&gt;But try this workaround and see if it works,&lt;br /&gt;Add an Form Open rule which changes a DOM's field value, add an OnAfterChange event to that DOM field and write your code in that method.&lt;br /&gt;&lt;br /&gt;If you try this please let me know if that works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Code before rules</title><link>https://www.infopathdev.com:443/forums/thread/12555.aspx</link><pubDate>Sun, 04 Sep 2005 10:13:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12555</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12555</wfw:commentRss><description>hello,is there a way to run managed code before any rules?(tools, form options, open and save, rules button-i want my code before this rules...).I have my code in OnLoad event but still it is too late...&lt;br /&gt;</description></item></channel></rss>