Please respond ASAP!!
I have a form that when you click submit:
It is submitted to a sharepoint library (formA)
a new form is opened (formB)
the form code runs (formA)
then it closes (formA)
i tried putting the Close in a rule, but it ran the rules before it ran the custom code. so i tried putting this at the bottom of my code on FormA:
Application.XDocuments.Close(XDocument)
This seems to work fine, but then on the new form that is opened...the rules do not run when i press submit (i think the code does though)
is there a different way to close FormA using code? a way that will make all this work like it is supposed to?