How to insert a file attachment control-InfoPath?

How to insert a file attachment control-InfoPath?

Double-click the file attachment control. Click the Data tab. Under Validation and Rules, select the Allow the user to attach only the following file types check box, and then, in the box, type the file extensions for the file types that you want to allow.

Where do I find the File Attachment Control?

In the following example, the file attachment control on the form template is bound to the discussionItemAttachment field in the Data Source task pane. When you design a new, blank form template, the Automatically create data source check box in the Controls task pane is selected by default.

What to include in Microsoft InfoPath form template?

A Microsoft InfoPath 2010 form template can include different types of controls designed to collect or display information as an object — file attachments, pictures, and hyperlinks. The file attachment control enables users to attach a file to a form when it is submitted.

How do I attach a file to a document?

In the Controls task pane, click File Attachment under Insert controls. Right-click the File Attachment control, and then click File Attachment Properties. In the File Attachment Properties dialog box, type theAttachmentField in the Field Name box, and then click OK.

How does InfoPath hide unsupported files in a folder?

When you specify the types of files that you want to allow, InfoPath automatically hides any unsupported files in the Attach File dialog box. For example, if you limit file attachments to .txt files, then .docx, .pptx, and other file types are hidden in the dialog box, even if they exist in the folder.

When to use a file attachment control in Microsoft Office?

If you want users to be able to insert files on a Microsoft Office InfoPath form, you can use a file attachment control on your form template. Users can use this control to attach files to your form, and the files are then encoded and saved with the form data. Use a file attachment control when you want to:

How to automatically create data source in InfoPath?

When you design a new, blank form template, the Automatically create data source check box in the Controls task pane is selected by default. This enables InfoPath to automatically create fields and groups in the data source as you add controls to the form template.

How to insert a control into a file?

Under Insert controls, click File Attachment. In the File Attachment Binding dialog box, select the field in which you want to store file attachment data, and then click OK. InfoPath uses the name of the field or group as the control’s label. If necessary, change the label text.