• 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 https://blackhillsvendorpark.com/registration/ if all you want is to look at an example.

    Thread Starter dr.techy

    (@drtechy)

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

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

    (@takayukister)

    What do you have in the Form tab panel?

    Thread Starter 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?

    Thread Starter 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)
  • The topic ‘file attachment not working as required’ is closed to new replies.