Hi Ben ,
As you told above i added the field and give the name DocumentName but further how to know this field hold the file name and how to set value of this field as you did above .please give me idea step by step for this process. i have need to display the document name when published info-path form is saved on ...