Common field - attachment not showing

Hi guys,
Common field in Plumsail Forms is not showing :frowning:
Settings:
image
NewForm:
image

I would like to use the common field of Plumsail Forms because some people require from other people to inser only .pdf or .docx etc...

Can you help me, please?
Thank you
Steve

Hello @Stepan,

The common Attachment field is not supported in SharePoint 2019.

Data entered in Common fields is not saved to SharePoint directly. Common Attachments field saves files to Plumsail Account, and this functionality is not supported in SharePoint On-Premises version.

In your case, you can add a custom validation to the Attachments field to allow users to upload only certain file types:

fd.field('Attachments').validators.push({
       name: 'Check Attachment',
       error: "Error text attachments",
       validate: function() {
           var atchsAr = fd.field('Attachments').value;
           let sum = 0;
           for (i = 0; i < atchsAr.length; i++) {
              var ext = atchsAr[i].extension;
              if (ext != '.doc' && ext != '.docx' && ext != '.pdf') {
                   this.error = "Please upload a Word or a PDF document!"
                   return false;
               }
               return true;
           }
       }
   });
1 Like

Hi @mnikitina
EDIT: Sorry, now it works. Yesterday it mysteriously did not. Sorry - problem solved.
So, in plumsail forms application I see this field for use, but as you said, I cannot on On-prem.
Never mind, I wanted to also make people life easier with drag and drop with this field :slight_smile:
Is it possible to do it with Sharepoint attachment field?
Thank you for the explanation.
Steve

I will bring this to the attention of the developers. And maybe we will remove the Attachment common field from the designer for SharePoint On-Premises.

The drag-and-drop functionality for SharePoint Attachments fields works both in SharePoint Online and On-premises.

1 Like

Hi,

I am experiencing the same problem. After searching for a while, I found that the attachment field only works outside a grid container. In a grid container, the upload window is not visible. I assume this is a bug? Outside a grid, this common upload field works without any problems.

Best regards,

Johan

Hi Johan,
I tried that, and still not working :frowning:
image

Do you use Forms Online or Forms on-premise?
We use on-premise version.

Steo

Hi Stepan,

I did a quick test and I have the issue in all types of containers.

We are using Plumsail Forms on SharePoint 2019 Onprem.
I can simulate the issue with following steps...

  1. Create a custom list in SharePoint 2019
  2. Modify the edit page with Plumsail Forms for SP2019 version 1.8.7
  3. Add a common attachments field outside a grid (or other containers!).
  4. Add a common attachments field inside a container. (for example a grid container)

Best regards,

Johan

Hi again,
My theory is not waterproof.
I had a form where the common attachment field was not fully visible. I then moved it out of the grid, saved the form and then back into the grid and it suddenly worked.
No explanation for but I think this attachment field is a bit bugy. I will continue with a library control instead.

Hello @Johan,

The common Attachment field is not supported in SharePoint 2019.

Files uploaded to the common Attachment field are not saved to SharePoint. Common Attachments field saves files to Plumsail Account, and this functionality is not supported in SharePoint On-Premises version.

Use the SharePoint Attachments field or a List or Library control connected to a document library to collect files.

1 Like