Support » Plugin: Contact Form 7 » file attachment not working as required

  • Resolved dr.techy

    (@drtechy)



    I have a form with file attachment field. I have set the field as required.

    for example… [file* file-name …..] but on the front end when users submit the form, the submission goes successfully even without any attachment. Whereas i want the form to give error messsage if no file is attached with the form.

    How to solve this please help!! Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website?

    I have the same issue on one of my sites. I posted it in another post. My site is http://blackhillsvendorpark.com/registration/ if all you want is to look at an example.

    The form is on http://arisda.info.tm/report/rcho-report/

    • This reply was modified 5 months, 1 week ago by  dr.techy.
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What do you have in the Form tab panel?

    dr.techy

    (@drtechy)

    This is the content of the form. I have removed the styling from the code.

    <label>Institue Name<em>*</em></label>
    [text* InstituteName default:user_nickname readonly]
    
    <label>Institute Email ID<em>*</em></label>
    [email* InstituteEmail default:user_email readonly]
    
    <label>First Name of Institute Incharge<em>*</em></label>
    [text* NameOfIncharge default:user_first_name readonly]
    
    <label>Last Name</label>
    [text SurnameOfIncharge default:user_last_name readonly]
    
    <label>Reporting Month<em>*</em></label>
    [select* ReportingMonth include_blank "Jan" "Feb" "March" "April" "May" "June" "July" "Aug" "Sep" "Oct" "Nov" "Dec"]
    
    <label>Year<em>*</em></label>
    [select* ReportingYear include_blank "2017" "2018" "2019"]
    
    <label>Please Upload Maternal & Child (RCHO) report in XLSX Format (Download Here)<em>*</em></label>
    [file* RCHOreport limit:200000 filetypes:xls|xlsx|pdf|jpg id:rchoreport]
    
    [submit "SUBMIT"]
                 
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins do you have? What happens if you deactivate all of them?

    dr.techy

    (@drtechy)

    Thanks… It is having conflict with plugin CF& Smart Grid Layout. Thanks for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.