2. My requirement? Detect whether the form is being run from my own surrounding html page or from forms builder.
The core requirement I am trying to accomplish is: allow the form to be closed via the standard form exit if it is run from forms builder. Don't allow it to be closed that way if it is opened from my surrounding html page.