I was wondering if it is possible for an attachment to be displayed within the form i.e the user uploads an image in the attachment field and upon submission that image is displayed on the submit success page.
Yes this is possible, via the following steps.
Paste this in:
<img alt="My Image" data-ng-src="data.attachmentField.AttachmentManager.imageData"/>
This is using angular's ng-src directive to dynamically insert the image from the attachment field."attachmentField" is the ID of the attachment field item."AttachmentManager" is an array of attachments inside of all attachment fields.Use the index to pick the attachment you want."imageData" contains the base64 encoded image.