Support » Plugins » Contact Form 7 – How to trigger 'File type not allowed' Validation Message

  • Resolved nfrost21

    (@nfrost21)


    I’m using Contact Form 7 on a site and it’s working correctly –

    However the form has a file upload field, which is configured to accept only doc and docx file formats. When a user enters a non-accepted file-type – such as jpg, they receive the generic message:

    ‘Validation errors occurred…’

    but I would prefer the user to receive a more accurate message informing them that only doc and docx file-types are allowed.

    I thought this was the functionality out of the box but it does not appear to be working.

    Here is the short-code that I’m using to generate the field:

    [file* file-262 limit:2000000 filetypes:.doc|docx 15/]

    Any ideas how I can trigger a more accurate validation message?

    Thanks!

Viewing 1 replies (of 1 total)
  • Resolved –

    The contact form was already working correctly. I was unaware that the validation message appears both at the bottom of the CF and overlaying the erroneous field input.

    Nothing to see here. Please delete!

Viewing 1 replies (of 1 total)
  • The topic ‘Contact Form 7 – How to trigger 'File type not allowed' Validation Message’ is closed to new replies.