Alright I created a form, created a connection to my SQL database, and dropped all of the database fields onto the form. At the bottom of my form I added a submit button with the following code:
topmostSubform.Page2.Submit::click - (JavaScript, client)
xfa.sourceSet.RunSQLDataConnection.addNew()
When I try to preview the form in either LiveCycle or on my website I get the following error:
Connection failed because environment is not trusted
Can any help?