This is my first infopath form I've developed, so if anything is painfully obvious, please let me know.
I'm currently designing a browser based form that will be hosted in a SharePoint form library. A request my manager has made of it is to have a table or some type of field at the bottom of the form to show the "edit history" of the form. Basically, every time the form is updated, I need to capture the user's name and time that it was updated and keep it displayed at the bottom. At first I was trying to do this without custom code, but I couldn't figure out a way to do it.
I have 2 buttons on the form. An "update" that submits it to a form library and a "close" button. The Update button submits it using the action "Submit using a data connection". I added some code behind it to log the information I needed in a repeating for the edit history. It doesn't seem to work. I click the button and it submits the form, but doesn't update the history table. If I disable the rules, it updates the edit history table but obviously doesn't submit to the library.
What is the best course of action for me to take? Should I use code to submit to the library as opposed to rules or is there a better way of creating the Edit History table?