I have a InfoPath form which will get attachment for first time.
During edit it should not show the the attachments, how can this be accomplished?
You can use two section having same attachment control. And in one section go to properties of the attachment control and unchecked the checkbox (Allow the user to browse, delete and replace files). And other leave as it is. And now you can use conditional formatting to show one of them control using your condition. This way u can disable the control by actually hiding one of them.