I used this as my reference:
Auto-numbering InfoPath forms when they are submitted to a SharePoint form library
I followed that link but it wont work correctly,instead of having 1,2,3... as filename it creates NaN as it's file name.. what should I do?
look at the image:
RFQ No
? What is the data validation? What rules are applied? How is the field populated? Put the details in the question.