Invalid field attributes are causing the form to fail markup validation

  • Profile Image
    guest_23654205886056
    Asked on January 01, 2013 at 02:49 AM

    1. file-accept="*" is unknown attribute with <input type="file". valid would be: accept="" -->but this doesnt work -->what is a valid way to allow multiple file types during upload?

    2. multiple="multiple" doesn't work (new with html5), -->what is a valid way to allow multiple file types during upload?

  • Profile Image
    NeilVicente
    Answered on January 01, 2013 at 03:10 AM

    Those seemingly invalid attributes are custom-created by our developers and are necessary to make the functions "multiple file upload" and "file type restriction" possible.

    It is possible to remove them by modifying the form's source code and embedding the codes in a webpage hosted on your own server, but doing so will cause the features mentioned above to stop working.

  • Profile Image
    guest_23654205886056
    Answered on January 01, 2013 at 04:28 AM

    Thank you for the fast reply.

    With HTML5 there will is an attribute 'multiple="multiple"' so it looks like jotform can "overwrite" existing attributes.

    Why not use the existing attribute "accept" instead of "file-accept" and make the source code HTML5 conform?

  • Profile Image
    NeilVicente
    Answered on January 01, 2013 at 08:27 AM

    I'll forward your questions to our developers to see if there's anything they can do about it.

    Thank you for your input.

  • Profile Image
    aytekin
    Answered on January 02, 2013 at 02:44 AM

    We will look into this. If you use the javascript code version it should also not worry about w3c validation. 

  • Profile Image
    guest_23654205886056
    Answered on January 02, 2013 at 11:01 AM

    Thank you. Can you send me a link to the script code?,

    Happy new year

  • Profile Image
    EduardoMendez
    Answered on January 02, 2013 at 12:14 PM

    Hi there, 

    You can find the javascript code to your form by following this visual guide:

    Hope that helps!