Excute Order: Form Load Rules or Form_Loading Event code RRS feed

  • Question

  • Hi,

    I have a infopath 2010 browser form. When I debug in local environment, it seems the rules in Form Load event runs prior FormEvent_Loading code in code behind. When I upload the form and run it in brower environment, The  FormEvent_Loading code runs before form load rules. Wonder if there is settings can configure this excution order?



    yuhong Liu

    Tuesday, March 27, 2012 8:27 PM

All replies


    Hi Liu,

    I’ve tested the event FormEvent_Loading according to your post, the execute order of FormEvent_Loading and rules in Form Load is different between browser environment and local environment. In order to work around this, you can move the code in FormEvent_Loading to a custom function, and gets this function called by rule set in Form Load. Please refer to this article to call the C# code by rules.


    Lambda Zhao

    TechNet Community Support

    Thursday, March 29, 2012 8:28 AM
  • Thanks,Lambda!

    My experience is that the xdExtension is not supported by browser form. I may be wrong, I could not run it through "Design Checker".


    yuhong Liu

    Thursday, March 29, 2012 4:21 PM