Just to modify this slightly I've changed the way the submit works. So I've created a data connection which queries the SharePoint list and retrieves the ID list number. In theory the submit then sets the field Im trying to assign a the number ID = 1 and then submits the data.
What's happening now is I'm getting the word false in the fields textbox before submission.