I have a browser compatible InfoPath 2007 form that is based on a SQL Server Data Connection. The form submits the data back to the database via a web service. The form itself is then submitted to a SharePoint Library. The form works just fine when opened in either the InfoPath Client or the browser. I can populate the fields and submit the data to the database and the form to the SharePoint library. The form has both required and optional fields. The problem is if the form was submitted to the sharepoint library from the browser and i open that form again from the SharePoint library, the optional fields that were NOT populated are disabled. The problem is I can not go back into the form and edit the fields so i can submit it again.
The submit process is done through rules on a button i added to the form. When the button is clicked...
I set some fields' values
I submit the data to a web service
I query the data using the web service to get the ID of the record that was just added to the database. (The database uses an auto-numbering field as the PK and i need to get this ID back to the form.)
I set that ID value to the query field on the main connection and then query the main connection to get all the data records with their proper IDs back into the form.
I then submit the form to a sharepoint library.
When i open that submitted form from the sharepoint library, any field that was blank is disabled. Any field that had data can be edited.
This not a problem if the form was opened in the InfoPath client.
Any ideas?