Madhuri,
It doesnt work in browser-enable, i have one rule that set a value to a textBox when the form is open and some piece of code(on FormEvents_Loading) that use the value of this textbox. This works when i debug my project because open infopath(not browser), but when i publish form template to a formLibrary and open using browser dont work.