• Hi,

    Thanks again for this plugin!

    Is there a way to make it a required field: [mfile* field-name (etc)… ?

    Is there a way to validate whether files were uploaded?

    Is there a way to validate whether files were mailed?

    Some/any of that would be helpful! Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hi @hommealone

    Is there a way to make it a required field: [mfile* field-name (etc)… ?
    – You just need to add * on mfile tag like this [mfile* ]

    Is there a way to validate whether files were uploaded?
    – You have to check it manually in order to verify if the files were uploaded.

    Is there a way to validate whether files were mailed?
    Try to install contact form 7 database or any other plugin that save each submission of cf7 then check each entry to see if there’s any files or attachment.

    Please let me know if you have any other questions.

    Thread Starter hommealone

    (@hommealone)

    I was wondering/asking if the built-in CF7 form validation, or some custom javascript, could tell if there is a file queued for upload when the submit button is clicked.

    For example, if I make it a required field using [mfile* ] does it automatically check if a file is queued up, or would I need some custom javascript for that? If custom script is needed, can you suggest any?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @hommealone The validation process for the file upload is managed in PHP (no javascript), similar to other CF7 fields, using the wpcf7_validate filter. When the user clicks the submit button, the file upload will be automatically validated to ensure it is not empty. If the file is empty, a message will be returned to the user.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Check for success?’ is closed to new replies.