Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Javascript: force the user to enter something in the file upload box?

Options
  • 14-07-2008 5:51pm
    #1
    Closed Accounts Posts: 12,382 ✭✭✭✭


    Hello

    This relates to the website www.tempjobs.ie

    A lot of users of this site forget to attach their CV.

    Does anyone know any javascript I can use which will force users to include the CV?

    Thanks! :)


Comments

  • Closed Accounts Posts: 35 dkell


    Why not just do some validation to make sure the required form fields (including the CV) are completed before you allow the form to be submitted.

    It's easy to do with JavaScript, for example: http://www.w3schools.com/js/js_form_validation.asp. (You should also validate it on the server side to make sure).

    You could also put a notice asking them to add their CV - maybe people don't realise it's required.

    It's a bit more user friendly if you use inline error messages rather than alert boxes (as used in the example above) to let the user know what they need to fill in.


Advertisement