I have an infopath 2010 form with attached code, so I have published it to a forms library as an administrator approved form. This form is linked to a site content type, and is used in a number of sites under the site collection.
I'd like to be able to determine the current forms library the form has been created in, either programtically or by setting a default field value. But I only seem able to determine the URL of the forms template library where the form is stored. Is there any way of getting the url of the library where the particular 'instance' of the form has been created?